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

Ira, Finnian, Bill H, et al

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

    #16
    RE: Ira, Finnian, Bill H, et al

    Hi Cal,

    All well and good. I agree with everything you said (and do the same). But I wonder whether this practice has the inadvertent consequence of keeping commands synchronized.

    Bill
    Bill Hanigsberg

    Comment


      #17
      RE: Ira, Finnian, Bill H, et al

      Bill,
      Lucky you, I haven't a clue where the hydrants are. One of the timing problems I had went away when I did exactly what you described (closing and reopening). It also went away when I placed a several second pause in the script. Almost anything I caused to happen at the point one process ended and just prior to another process starting caused the problem to go away. I have a feeling Selwyn might be interested in Martin's problem if it can be produced on demand.

      Comment


        #18
        RE: Ira, Finnian, Bill H, et al

        Hi all,

        I tend to use scripts very seldom preferring to call functions. If I do run a script, it is typically at the top most level and never invokes a script itself.

        I suspect that each script is essentially opening it's own session and running to completion (more or less). If you made the scripts into a function (possibly with no parameters) and then said something like

        script1()
        script2()

        I bet you they would run in succession. In fact, functions almost by nature must be synchronous, as they could return a value that might be used later.

        I have seen an occasional syncing problem, but it has always been when running a spawned task (seldom used today) or when a sys_shell() is invoked.

        Perhaps I am lucky or just use the right technique, or both.

        Regards,

        Ira J. Perlow
        Computer Systems Design & Associates
        [email protected]
        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


          #19
          RE: Ira, Finnian, Bill H, et al

          yes - to Ira's point: they have to run successively if invoked as functions. and, on a form where the files referenced in the functions are also in the form, if i push a button [update balance due] and use functions, everything works great

          the problem i am having with this is that the user "edits a charge" on another form. that form records the changes to that file/set, closes, and reopens the main form - i have been trying unsuccessfully to get those functions to fire at the onactivte event for the form or the onarrive event of an object by either calling them, or pushing the [updatebalancedue] button - to update the balance due. but if i do that everything freezes for a long time - sometimes comes through, sometimes says iot can't find the file or alpha can't find an alphabit ddd or something

          but at least i have written two functions and aren't afraid of them anymore - and they do work better than script_play's

          the only thing i haven't tried yet is at the onintialize event for the form - and am a fixin too

          thank's for all the help to everyone
          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


            #20
            RE: Ira, Finnian, Bill H, et al

            Bill,
            One area where opening and closing a table after each step seems almost a necessity is chaining operations. I normally include the operation code for append, post etc as low level code in a script. I found if I ran a couple in succession on a single table without closing and reopening after each step, I normally returned an error. Saving the operation and calling each in succession with operation.run worked ok. Adding a close and reopen has solved the problem in every case, at least so far.

            Jerry

            Comment


              #21
              RE: Ira, Finnian, Bill H, et al

              I have learned to employ the same practice in such situations.

              Bill
              Bill Hanigsberg

              Comment


                #22
                RE: Ira, Finnian, Bill H, et al

                Martin,

                Perhaps I am lost in the details of this long exchange but what instead of 3 scripts in which the first calls the 2nd and 3rd in succession, what if you took the same code and pasted it together in one long script just to test if the problem is synchronization. Or did you already try this?

                Bill
                Bill Hanigsberg

                Comment


                  #23
                  RE: Ira, Finnian, Bill H, et al

                  Martin, When Ira takes the time to respond you should study his comments extensively. His comments are short and to the point. As is with most of his responses he has the answer. It will take some effort to understand it but give it some time and reread it over and over again.
                  His solution will save you lots of problems.

                  Comment


                    #24
                    RE: Ira, Finnian, Bill H, et al

                    Yes, Jack, I agree - when Ira responds, to include a few others as well, I sit up.

                    But I found the problem.

                    I noticed on the same troublesome form that when I pushed another button that deleted the record, when I used the functions, they worked like lightening, and perfectly, and i was able to put everything in order

                    - please note that since Selwyn said to put parentform.close() as the last line in any script, not leaving any commands to follow, I found that where I was having one computer crash and not another, that that was the problem!

                    on the save button, the first command was parentform.commit()

                    I moved the commit() command to the onarrive event for the button, and all of a sudden everything works perfectly -

                    ....parentform.commit() ... moved to on arrive
                    cnum=parentform:cust_number.value
                    fixone(cnum)
                    uponebalance(cnum)
                    form.view("master form")
                    parentform.close()

                    this is my conclusion: (correct, maybe?!!)
                    when i say form.commit() and then call the functions, i think there is a time when alpha is updating the indexes for the set at the same time the functions are opening the files and manipulating them - thus one of the errors [can't find the file].

                    so, if I am correct, then it is a timing issue, but not one there wan't an easy fix for.

                    i also think that by putting the scripts in functions instead of script_play's, that that stopped timing issues between the two scripts

                    i need two functions as in some instances i call one, and in others i call both

                    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