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

a5_show_variable(global_variables())

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

    a5_show_variable(global_variables())

    I seem to have a very long list of global variables since the box that is displayed is way too large for my screen...
    Only by some very deft mouse movements am I able to get the dialog box to close.

    I cannot find any means of controlling the size of the list or the box in the chm. Does anyone have an answer for this problem????

    I am using the code as follows:

    Code:
    a5_show_variable(global_variables))
    Any help appreciated,
    D

    #2
    Re: a5_show_variable(global_variables())

    Some indication of the end result you want might help.

    Are you just trying to capture a list of the global variables and their current values? Just get to the interactive editor and type

    ? global_variables()

    Are you trying to check the values of some variables at a certain point in a script? Use some ui_msg_box() lines to display them or trace.writeln() and examine the trace window.
    There can be only one.

    Comment


      #3
      Re: a5_show_variable(global_variables())

      D

      It is a resizable dialog.... Move the edges of the dialog..

      Can you post an image of what you are seeing?
      Al Buchholz
      Bookwood Systems, LTD
      Weekly QReportBuilder Webinars Thursday 1 pm CST

      Occam's Razor - KISS
      Normalize till it hurts - De-normalize till it works.
      Advice offered and questions asked in the spirit of learning how to fish is better than someone giving you a fish.
      When we triage a problem it is much easier to read sample systems than to read a mind.
      "Make it as simple as possible, but not simpler."
      Albert Einstein

      http://www.iadn.com/images/media/iadn_member.png

      Comment


        #4
        Re: a5_show_variable(global_variables())

        OK --
        more specifically --

        in one database, the 'new' tabbed display box comes up just fine. There is only one global variable in that database and it is displayed. It's new and still being developed.

        In another database, the box comes up with the top and the bottom off the screen and the sides are OK. The sides can be adjusted to any desired width, but the top and the bottom cannot. I can just barely see the bottom of the 'red X' box at the top one time and can click on it to close the box. Another time, I can just barely see the top of the 'close' box and can use that to exit the display. In both cases, there are no variables listed on the screen.....

        I am aware that there could be a problem with my database, but it is not readily apparent.

        Does this help or do you need to see a 'pix'. I have Screen Shot and can try if really necessary.

        D

        Comment


          #5
          Re: a5_show_variable(global_variables())

          Richard,
          I am seeing what you are seeing.
          The code you posted was not correct. This is what needs to be placed into IW to see the result:

          Code:
          ? a5_show_variable(global_variables())
          Mike W
          __________________________
          "I rebel in at least small things to express to the world that I have not completely surrendered"

          Comment


            #6
            Re: a5_show_variable(global_variables())

            Thanx -- just shows you what happens when old fingers try to keep up with a young mind....

            D

            Comment


              #7
              Re: a5_show_variable(global_variables())

              I am (regrettably) resurrecting this old thread because I am still having problems
              with the listing of global variables. An app has a looooong list of global variables
              and occasionally they need to be listed and reviewed.

              Using A5_show_variable() creates a wonderful display if you only have a few
              variables.
              In my case I have many and the box that is displayed does not stay within the
              confines of the monitor..... The top and bottom of the box are off the screen and
              I have to 'lower' the bottom Windows bar in order to get to the 'exit button' for
              the global var display.

              Is there any way to limit or otherwise 'size' the box to keep it on the screen?

              Scrolling across the top to find the variable needed is not really a problem but
              I can't see the top or the bottom of the display box.

              If there are only a few global vars, the box is displayed properly.

              Any help appreciated.
              D

              Comment


                #8
                Re: a5_show_variable(global_variables())

                D, I don't have an answer for you, but here's a suggestion. Why not create a table in the app and store the variable names there, along with some information about their data types, and uses. As changes are made in the app, update the table.

                Comment


                  #9
                  Re: a5_show_variable(global_variables())

                  Originally posted by dik_coleman View Post
                  An app has a looooong list of global variables
                  and occasionally they need to be listed and reviewed.
                  Try this in the interactive or as a saved script and then view the resulting text file.

                  Code:
                  dim lst as p
                  lst = global_variables()
                  file.From_property("c:\vars.txt",lst)
                  There can be only one.

                  Comment


                    #10
                    Re: a5_show_variable(global_variables())

                    Richard,
                    I had a similar situation in which I wanted a ui_msg_box() to appear with a list....I was able to set a limit on how many lines were displayed (set mine to 40) and then have the option of whether to have this list saved and then another option to have the list printed out....all from the ui_msg_box().

                    If you use the individual functions to gather your variables--Global_Variables(), Session_Variables(), and Local_Variables()--then you could do the same by creating a crlf() list of each by creating a loop, limiting them, and adding whatever options you want.

                    I would love to give my example here and may, but have to take out some info and modify it to be more generic. I can't even give a screenshot yet.

                    I just wanted to let you know it definitely is doable and will help you accomplish it if you need help in doing so.


                    EDIT: I see Stan has you moving along the same general line of thought! A bit slow here I guess.
                    Mike
                    __________________________________________
                    It is only when we forget all our learning that we begin to know.
                    It's not what you look at that matters, it's what you see.
                    Henry David Thoreau
                    __________________________________________



                    Comment


                      #11
                      Re: a5_show_variable(global_variables())

                      Originally posted by Stan Mathews View Post
                      Try this in the interactive or as a saved script and then view the resulting text file.

                      Code:
                      dim lst as p
                      lst = global_variables()
                      file.From_property("c:\vars.txt",lst)
                      Stan, the man: I converted my action script to show and it works fine. I added action 'open a non-alpha file' and made the path, the app path. It works like a charm
                      'Execute inline Xbasic code.
                      dim lst as p
                      lst = global_variables()
                      'file.From_property("c:\vars.txt",lst)
                      file.From_property(a5.get_path()+chr(92)+"vars.txt",lst)

                      'Open file: C:\vars.txt
                      DIM filename as c
                      filename = a5_eval_expression("=a5.get_path()+chr(92)+\"vars.txt\"",local_variables())
                      if file.exists(filename) then
                      sys_open(filename)
                      else
                      ui_msg_box("Error Opening File","File '"+filename+"' does not exist.",ui_stop_symbol)
                      end if

                      Comment


                        #12
                        Re: a5_show_variable(global_variables())

                        Works for me. Nice touch.
                        There can be only one.

                        Comment


                          #13
                          Re: a5_show_variable(global_variables())

                          thanx gentlemen--
                          took me a while to get back to the problem but your solution(s)
                          are very nice.

                          Not sure yet if I like having all the global User Defined Functions
                          as a part of the global variable list, but it doesn't hurt to have
                          them there.

                          my sincere thanx
                          D

                          Comment


                            #14
                            Re: a5_show_variable(global_variables())

                            Originally posted by dik_coleman View Post
                            Not sure yet if I like having all the global User Defined Functions
                            as a part of the global variable list, but it doesn't hurt to have
                            them there.

                            Shouldn't be too hard to subtract them from the variable list with

                            a5.Udf_Enum()

                            Suppose the variable new_list has the global_variables() output. You can fill a variable, uds, with the output of a5.udf_enum(). Massage that slightly to match the format of the entries in new_list, and then subtract uds2 from new_list.

                            Code:
                            ? new_list
                            = <CUSTOMER_REPORT="">
                            <CallAlphaSportsHelp=>
                            <close_all_windows=>
                            <close_if_exists=>
                            <EditCustomerXdialog=>
                            <form_cascade=>
                            <show_batch=>
                            <show_help_topic=>
                            <show_nav_toolbar=>
                            <upce2a=>
                            <xlindx_to_txt=>
                            <number=0>
                            
                            
                            uds = a5.Udf_Enum()
                            uds2 = *for_each(fullname, "<"+word(fullname, 1, "@")+"=>",uds)
                            
                            ? uds2
                            = <form_cascade=>
                            <editcustomerxdialog=>
                            <Close_if_exists=>
                            <Close_all_windows=>
                            <CallAlphaSportsHelp=>
                            <xlindx_to_txt=>
                            <upce2a=>
                            <show_nav_toolbar=>
                            <show_help_topic=>
                            <show_batch=>
                            
                            
                            ? word_subtract(new_list,uds2)
                            = <CUSTOMER_REPORT="">
                            <number=0>
                            There can be only one.

                            Comment

                            Working...
                            X