Alpha Software Mobile Development Tools:   Alpha Anywhere    |   Alpha TransForm subscribe to our YouTube Channel  Follow Us on LinkedIn  Follow Us on Twitter  Follow Us on Facebook

Announcement

Collapse

The Alpha Software Forum Participation Guidelines

The Alpha Software Forum is a free forum created for Alpha Software Developer Community to ask for help, exchange ideas, and share solutions. Alpha Software strives to create an environment where all members of the community can feel safe to participate. In order to ensure the Alpha Software Forum is a place where all feel welcome, forum participants are expected to behave as follows:
  • Be professional in your conduct
  • Be kind to others
  • Be constructive when giving feedback
  • Be open to new ideas and suggestions
  • Stay on topic


Be sure all comments and threads you post are respectful. Posts that contain any of the following content will be considered a violation of your agreement as a member of the Alpha Software Forum Community and will be moderated:
  • Spam.
  • Vulgar language.
  • Quotes from private conversations without permission, including pricing and other sales related discussions.
  • Personal attacks, insults, or subtle put-downs.
  • Harassment, bullying, threatening, mocking, shaming, or deriding anyone.
  • Sexist, racist, homophobic, transphobic, ableist, or otherwise discriminatory jokes and language.
  • Sexually explicit or violent material, links, or language.
  • Pirated, hacked, or copyright-infringing material.
  • Encouraging of others to engage in the above behaviors.


If a thread or post is found to contain any of the content outlined above, a moderator may choose to take one of the following actions:
  • Remove the Post or Thread - the content is removed from the forum.
  • Place the User in Moderation - all posts and new threads must be approved by a moderator before they are posted.
  • Temporarily Ban the User - user is banned from forum for a period of time.
  • Permanently Ban the User - user is permanently banned from the forum.


Moderators may also rename posts and threads if they are too generic or do not property reflect the content.

Moderators may move threads if they have been posted in the incorrect forum.

Threads/Posts questioning specific moderator decisions or actions (such as "why was a user banned?") are not allowed and will be removed.

The owners of Alpha Software Corporation (Forum Owner) reserve the right to remove, edit, move, or close any thread for any reason; or ban any forum member without notice, reason, or explanation.

Community members are encouraged to click the "Report Post" icon in the lower left of a given post if they feel the post is in violation of the rules. This will alert the Moderators to take a look.

Alpha Software Corporation may amend the guidelines from time to time and may also vary the procedures it sets out where appropriate in a particular case. Your agreement to comply with the guidelines will be deemed agreement to any changes to it.



Bonus TIPS for Successful Posting

Try a Search First
It is highly recommended that a Search be done on your topic before posting, as many questions have been answered in prior posts. As with any search engine, the shorter the search term, the more "hits" will be returned, but the more specific the search term is, the greater the relevance of those "hits". Searching for "table" might well return every message on the board while "tablesum" would greatly restrict the number of messages returned.

When you do post
First, make sure you are posting your question in the correct forum. For example, if you post an issue regarding Desktop applications on the Mobile & Browser Applications board , not only will your question not be seen by the appropriate audience, it may also be removed or relocated.

The more detail you provide about your problem or question, the more likely someone is to understand your request and be able to help. A sample database with a minimum of records (and its support files, zipped together) will make it much easier to diagnose issues with your application. Screen shots of error messages are especially helpful.

When explaining how to reproduce your problem, please be as detailed as possible. Describe every step, click-by-click and keypress-by-keypress. Otherwise when others try to duplicate your problem, they may do something slightly different and end up with different results.

A note about attachments
You may only attach one file to each message. Attachment file size is limited to 2MB. If you need to include several files, you may do so by zipping them into a single archive.

If you forgot to attach your files to your post, please do NOT create a new thread. Instead, reply to your original message and attach the file there.

When attaching screen shots, it is best to attach an image file (.BMP, .JPG, .GIF, .PNG, etc.) or a zip file of several images, as opposed to a Word document containing the screen shots. Because Word documents are prone to viruses, many message board users will not open your Word file, therefore limiting their ability to help you.

Similarly, if you are uploading a zipped archive, you should simply create a .ZIP file and not a self-extracting .EXE as many users will not run your EXE file.
See more
See less

fabulous new feature

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    fabulous new feature

    check this out:

    Code:
    gpc=ui_get_time("Shift Begin:",time("",now()),.t.)
    msgbox("","" + gpc)
    dim td as d
    td=ctod(left(gpc,10))
    dim tin as y 'short time
    tin=right(gpc,14)
    msgbox("","" + td + crlf() + tin)
    the problem I'm having with it is that I can't find it in action scripting, and can't figure out how to trap the "cancel" button

    anyone know how to do so?
    Cole Custom Programming - Terrell, Texas
    972 524 8714
    [email protected]

    ____________________
    "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

    #2
    Re: fabulous new feature

    Hi Martin,

    The answer is with the underlying function that A5 uses it doesn't clear the value to a null on the Cancel, but should have (IMHO). There is no fix or simple code at the function level that will address the answer.

    But, it's a 5 minute fix for Alpha.

    I could make a duplicate function equivalent that does honor the cancel, but then I'd be doing Alpha's work!
    Regards,

    Ira J. Perlow
    Computer Systems Design


    CSDA A5 Products
    New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
    CSDA Barcode Functions

    CSDA Code Utility
    CSDA Screen Capture


    Comment


      #3
      Re: fabulous new feature

      here is a sample adb demonstrating a way to trap the cancel button, created and sent to me by Selwyn (how about that for service on a snowy superbowl day)

      this is a terrific, fast, user friendly, and modern but simple method for getting the date and time for a timeclock or similar log

      it opens the dialog with a pointer as p

      p=a5_datetimepicker2("Enter Shift Begin:",now()) 'enters now as the default

      p.time is the return value, which you can easily parse for the date and time (see the first post)
      p.lastbutton is the lastbutton they clicked
      Cole Custom Programming - Terrell, Texas
      972 524 8714
      [email protected]

      ____________________
      "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

      Comment


        #4
        Re: fabulous new feature

        Hi Martin,

        I'm glad Selwyn was able to give you what you need. If it took 5 minutes of his time, I'd be surprised.

        This is exactly the same code as the a5_datetimepicker() function (except for some minor differences). I would have just kept the original function, and just returned a null string value on a cancel button or close.

        a5_datetimepicker() is the underlying function used by wrapper function ui_get_time(), which you used before, and didn't process the Cancel.

        In fact, this code doesn't process the cancel, but now sets the OK flag, which implicitly sets it the other way for cancel and other exits from the code, and now returns the data and the button as a pointer, complicating your code end by a small amount.
        Regards,

        Ira J. Perlow
        Computer Systems Design


        CSDA A5 Products
        New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
        CSDA Barcode Functions

        CSDA Code Utility
        CSDA Screen Capture


        Comment


          #5
          Re: fabulous new feature

          Unfortunately, due to my level of competence, he had to send it three times, and he finally got frustrated with me and made a sample adb, that I could not misinterpret, so I'm sure it took more than 5 minutes!!
          Cole Custom Programming - Terrell, Texas
          972 524 8714
          [email protected]

          ____________________
          "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

          Comment


            #6
            Re: fabulous new feature

            Thanks for sharing this, Martin. It would be grat if they had a similar function on the web side, but I think I know why they don't - it would have to be written in JavaScript!

            Hey, Ira. Lawsuits aside, you could always reverse engineer all of Alpha's functions and start your own competing company. Maybe call it Gamma Software or something.
            Peter
            AlphaBase Solutions, LLC

            [email protected]
            https://www.alphabasesolutions.com


            Comment


              #7
              Re: fabulous new feature

              Hi Peter,

              Originally posted by Peter.Greulich View Post
              Hey, Ira. Lawsuits aside, you could always reverse engineer all of Alpha's functions and start your own competing company. Maybe call it Gamma Software or something.
              I kind of have, but I think I would call it
              Omega Software
              "The last functions you'll ever need!"


              I have tons of replacement functions of Alpha's Built-in functions that are faster, have more options or features, less side effects (approaching a pure function) or are easier to use.

              What Alpha spent an hour on, I might spend a week on if it's in a critical code for me.

              Alpha has time (read cost) constraints when writing a function. I don't have the same constraints. I work the function to optimize parameter order, options, speed and what I'll call clarity (cleanliness of the code).

              What I wouldn't have done in this case is add a new function, but instead change the original code to return a null string on cancel.

              I don't believe in adding YAF (Yet Another Function) to an already burgeoning list, without good cause.

              A change to the System library's a5_datetimepicker() function would have eliminated the problem for Martin without any backward compatible issues, but obviously would have to wait till the next patch update.
              Regards,

              Ira J. Perlow
              Computer Systems Design


              CSDA A5 Products
              New - Free CSDA DiagInfo - v1.39, 30 Apr 2013
              CSDA Barcode Functions

              CSDA Code Utility
              CSDA Screen Capture


              Comment


                #8
                Re: fabulous new feature

                :D
                Marcel

                I hear and I forget. I see and I remember. I do and I understand.
                ---- Confusius ----

                Comment


                  #9
                  Re: fabulous new feature

                  I would like to trap the cancel button for ui_get_time, but I don't see the code for Selwyn's solution. Is it gone or redacted? Does anyone have it. Thanks
                  Mike W
                  __________________________
                  "I rebel in at least small things to express to the world that I have not completely surrendered"

                  Comment


                    #10
                    Re: fabulous new feature

                    Hi Mike,
                    Did you see post #3?
                    Robin

                    Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                    Comment


                      #11
                      Re: fabulous new feature

                      Hi Robin,
                      I figured a5_datetimepicker2() had to be a UDF I wasn't seeing.
                      Code:
                      dim p as p
                      p=a5_datetimepicker2("Enter Shift Begin:",now()) 
                      ERROR: Function: 'a5_datetimepicker2' was not recognized
                      Mike W
                      __________________________
                      "I rebel in at least small things to express to the world that I have not completely surrendered"

                      Comment


                        #12
                        Re: fabulous new feature

                        Try:
                        dim p as p
                        p.time = a5_datetimepicker("Time",now())

                        ?p.time
                        = 11/16/2015 01:57:00 00 pm

                        I didn't get anything when I tried ?p.lastbutton - maybe it has to be dimmed first - but as what type variable?
                        Robin

                        Discernment is not needed in things that differ, but in those things that appear to be the same. - Miles Sanford

                        Comment


                          #13
                          Re: fabulous new feature

                          I think it was dropped in some version since then
                          Cole Custom Programming - Terrell, Texas
                          972 524 8714
                          [email protected]

                          ____________________
                          "A young man who is not liberal has no heart, but an old man who is not conservative has no mind." GB Shaw

                          Comment

                          Working...
                          X