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

use of variables in sets

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

    use of variables in sets

    I am a long-time user of ALPHA4 v6, and now I am considering updating to ALPA5. For that purpose I have downloaded a trial copy, and in the process of experimenting with it, I find that I am unable to use a variable in the Filter expression for any of the links to the various Tables in the Set that I have defined. From the Edit Set window, I defined a variable as global. Having done so, I was surprised to find out that the variable did not become listed in each of the Edit Structure windows for the various tables - so for each of those tables, I also defined the same variable as global. Having done that, I attempted to define filter expressions for the child tables.
    The program accepted all the defined filter expressions; however, when I then viewed the Set, I found that all links resulted in in all linked fields being empty. I am positive that each child table does contain records for which the filters are "true", but they are not included in the view of the set. My syntax in the filter expressions for the variable (named ASOF) is "var->ASOF".
    What am I doing wrong???/

    #2
    RE: use of variables in sets

    When designing your links, have you already assigned a value to the variable. Your links will not be active until a value is assigned.

    Comment


      #3
      RE: use of variables in sets

      David;

      Ohlen is right and you, of course know that using a variable based filter would require the variable to have a value. If that global variable is character, you can set its value thus ASOF="your value". The filters will then work.

      Remember A4 when you declared a variable with a 'Set' statement, it would remain there for the entire alpha boot. The values could be overwritten, but that variable still existed until you closed the program. It's always been comforting to me to see the current value of any variable in A4 by pressing '[ALT][F3]V'. I know others have different methods but this one suits me because it is what I'm used to from A4. This method simulates, somewhat, the A4 regimen.

      I declare a bunch of global variables on the 'Oninit' event of my first Menu. Some have values and some don't. If I need to either change one of the values or assign a value, I use a prompt at the time of need - just like A4, and assign it.

      A quick way to check current global variables' values, is to select from the Alpha Main Toolbar/'View' then 'Code Editor' -Xbasic Explorer and open the 'Variables' tree.

      IMPORTANT: When you do select 'Code Editor' that 'View' drop menu changes displaying 'Xbasic Explorer' -That MUST be checked to display to display the Explorer. I didn't realize this and couldn't find my friendly variables anywhere once. It was then that I discovered this [maybe nebulous] feature.

      Watch for it. At times I would get everything up with the 'Code Editor' selection; close the Xbasic explorer with its windows' 'X' [leaving the code editor still visible]; then the next time Explorer wouldn't open simultaneously with the code editor. It was then that I observed the Drop Menu change and the need now for a check on the Explorer.

      Just some thought from a recent newbie to a newer newbie.

      Ken

      Comment


        #4
        RE: use of variables in sets

        Ohlen:

        Thank you very much for your reply.

        In answer to your question, I knew the variable needs a value, and thought I had done so when I used the "default value" option on the "variable" section of the "Set definition" window. Evidently, that really doesn't assign the entered value whenever the user doesn't assign some other value. That, of course, raises the next question - when, if ever, is that assigned "default" value really used.

        However, it now doesn't make any difference - because I now find that the time limit on my trial copy of Alpha 5 has expired, without having given me any advanced notice. Now I really don't know whether or not I want to buy a copy. The reason I am hesitant is that I find the documentation ("books" and on-line "Help") that came with my trial copy were totally inadequate - since I was unable to find in any of it how I might assign a variable value that will work in filter statements.

        Comment


          #5
          RE: use of variables in sets

          Ken:

          As I told ohlen,
          "Thank you very much for your reply.

          In answer to your question, I knew the variable needs a value, and thought I had done so when I used the "default value" option on the "variable" section of the "Set definition" window. Evidently, that really doesn't assign the entered value whenever the user doesn't assign some other value. That, of course, raises the next question - when, if ever, is that assigned "default" value really used.

          However, it now doesn't make any difference - because I now find that the time limit on my trial copy of Alpha 5 has expired, without having given me any advanced notice. Now I really don't know whether or not I want to buy a copy. The reason I am hesitant is that I find the documentation ("books" and on-line "Help") that came with my trial copy were totally inadequate - since I was unable to find in any of it how I might assign a variable value that will work in filter statements."

          Did you, per chance, receive any "hard copy" documentation, similar to the excellent manuals I received for Alpha 4 v6 ?? I know that the company offers to sell to books by a supposed independant author, but the cost of them is more that 50% more over the program price - which irks the heck out of me if they are the only way I can get decent documentation.

          Comment


            #6
            RE: use of variables in sets

            >>That, of course, raises the next question - when, if ever, is that assigned "default" value really used.>since I was unable to find in any of it how I might assign a variable value that will work in filter statements.ASOF="your value" should work. This is standard stuff that Alpha handles w/o problems. It should work for you too. You just need someone to walk you through it. Perhaps you can uninstall Alpha and reinsatll? If that doesn't work can you download another trial version? Where there is a will, there is a way. Alpha Five is a great product, believe it or not.
            Peter
            AlphaBase Solutions, LLC

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


            Comment


              #7
              RE: use of variables in sets

              Peter

              Thanks for your comments. I believe the downloaded file for the trial copy deleted itself, or maybe I lost it. Since the site for donwloading it asked for my E-mail address, I suspect they won't allow me to downlosd another, but I admit I haven't tried.

              As to defining my variable:

              1) The default value I tried, and need for my intended purposes involved an expression rather than a simple value. I am positive that it didn't work, since I then used the method that Ken suggested for checking values of variables - my variable was there but it had a null value. I also tried using just a fixed value in the definition of the filter, and that DID work. I had planned, for exploratory purposes, to try assigning a fixed value for the variable and then using that in the filter definition. Unfortunately, my trial time expired before I did it.

              2) I am aware of the statement for assigning a value to a variable, using the statement you mentioned. My problem was that I was unable to find, in any of the documentation available to me, just where and how I could enter that statement into my database.

              Comment


                #8
                RE: use of variables in sets

                David,
                If you were entering an expression in the default value variable dialog box, that won't/can't work. Expressions always work in expression boxes (where all the functions are available to you by drag'n'drop or double clicking) or in the xbasic code editor.

                As far as documentation goes, many of us have complained that it is less than desirable. But this board goes a long way in making up the difference. FWIW. I believe A5 v.5 will have more/better documentation as well as a new book to be released at the same time as v.5 by Peter Wayne.

                There is a learning curve for sure, and it is not to be minimized, but hang in there. You may likely find that it was worth the effort.
                Peter
                Peter
                AlphaBase Solutions, LLC

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


                Comment


                  #9
                  RE: use of variables in sets

                  peter

                  Thanks. For now, I think I will wait for version 5 before I finally decide whether or not to switch from ALPHA 4 to ALPHA 5.

                  Comment

                  Working...
                  X