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

VFP FoxPro to Alpha5 Questions

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

    #31
    Re: VFP FoxPro to Alpha5 Questions

    Hi Keith,

    I have really been noticing all the comments that corporate does listen and implement our suggestions and that is positive in my evaluation process...

    Your attachment shows all fields being searched via the UI, I was specifically wanting to see the code that allows me to search several fields at once for a value. Is that possible?

    Thanks...

    Comment


      #32
      Re: VFP FoxPro to Alpha5 Questions

      I saw the Scapbook feature and think it a great feature, but cannot replace the persistant automatic feature and history that I am accustomed to in VFP.

      Comment


        #33
        Re: VFP FoxPro to Alpha5 Questions

        Hi Stanley,

        I was specifically wanting to see the code that allows me to search several fields at once for a value. Is that possible?
        Yes, but you are still going to need a UI for the user to enter "Find Data", this can be got from AS and converted to code and then edited to how you want it.
        Regards
        Keith Hubert
        Alpha Guild Member
        London.
        KHDB Management Systems
        Skype = keith.hubert


        For your day-to-day Needs, you Need an Alpha Database!

        Comment


          #34
          Re: VFP FoxPro to Alpha5 Questions

          Hi Keith,

          I'm responsible for creating the app that the user will use, so I need to master the code, and with the code I can create the search form or dialog the user will use, as I never use the canned stuff that comes with these apps as they are usually so generic they are useless except for the simplest requests.

          This code I'm asking for may not even be on a form, but may be used to filter data for a report?

          With code you should be able to do most anything...

          Thanks

          Comment


            #35
            Re: VFP FoxPro to Alpha5 Questions

            According to the User Manual, an A5 database is similar to a VFP project and not a VFP database and only one database can be opened at a time.

            What a bummer, as there are times where lots of things needs to be copied from one A5 database to another A5 database, like side by side on a dual monitor system, until all coping is done, then close one.

            Comment


              #36
              Re: VFP FoxPro to Alpha5 Questions

              Originally posted by stanlyn View Post
              According to the User Manual, an A5 database is similar to a VFP project and not a VFP database and only one database can be opened at a time.

              What a bummer, as there are times where lots of things needs to be copied from one A5 database to another A5 database, like side by side on a dual monitor system, until all coping is done, then close one.
              Where in the manual did you see that? You can definately have multiple instances of A5 open at once with a different database/app in each. Even the same database open more than once if you have mutiple licences. Maybe what was meant is you can only open one database per instance of A5.
              Tim Kiebert
              Eagle Creek Citrus
              A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

              Comment


                #37
                Re: VFP FoxPro to Alpha5 Questions

                Hi Tim,

                I tried opening 2 databases in the same instance and it always closes the previous one before opening the selected one.

                You are saying that it must be done in multiple instances, then OK, I can live with that...

                Comment


                  #38
                  Re: VFP FoxPro to Alpha5 Questions

                  In reference to Keiths post above, he was alluding to the fact that many of us have learned a very powerful way to learn XBasic is to create an Action Script and then you can convert it to XBasic. You now have the guts of what you are looking for and the codebase to edit to make your own. The beauty of the "canned stuff", as you put it, is that you are able to change it into code that you can use to learn from. Many of the better developers here have used this is the beginning as a great starting point until they have a great collection of UDF's and code snippits.

                  Don't overlook the so called "simple" things as they can make your learning and coding much quicker.

                  Comment


                    #39
                    Re: VFP FoxPro to Alpha5 Questions

                    Originally posted by stanlyn View Post
                    According to the User Manual, an A5 database is similar to a VFP project and not a VFP database and only one database can be opened at a time.

                    What a bummer, as there are times where lots of things needs to be copied from one A5 database to another A5 database, like side by side on a dual monitor system, until all coping is done, then close one.
                    Stanley,

                    I forgot to mention that in many instances you can CopyTo (often found on the rightclick menu) to another database with out having that database open. As far as reusing code, you can compile scripts into an .aex file and then add them to a database or even add them to a5 as an addin. You can also, in the database properties, specify another databases's dictionary and then all the functions therein are available to the current one.
                    Tim Kiebert
                    Eagle Creek Citrus
                    A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine.

                    Comment


                      #40
                      Re: VFP FoxPro to Alpha5 Questions

                      Hi Stanley,

                      This code I'm asking for may not even be on a form, but may be used to filter data for a report?

                      Please see thumbnail of Dialog I created to Filter a report for the selected letter in a date range. Each Radio button is a variable to select which value the report is based on and the Dates also filter even further.

                      Is this what you were asking, what can Alpha do?

                      they are useless except for the simplest requests
                      Remeber, most users are not as smart as you!!
                      Last edited by Keith Hubert; 06-15-2008, 05:09 AM.
                      Regards
                      Keith Hubert
                      Alpha Guild Member
                      London.
                      KHDB Management Systems
                      Skype = keith.hubert


                      For your day-to-day Needs, you Need an Alpha Database!

                      Comment


                        #41
                        Re: VFP FoxPro to Alpha5 Questions

                        Stanley said:
                        I need to master the code, and with the code I can create the search form or dialog the user will use, as I never use the canned stuff that comes with these apps as they are usually so generic they are useless except for the simplest requests
                        "Never" is a long time.

                        I recommend you get familiar with what's available before discarding it wholesale.

                        'Query By Form' for example is quite powerful and flexible.

                        All Alpha Five forms are automatically bound to their supporting tables. Objects you place in the layout to display table data are automatically bound to the underlying record buffers. It's possible to craft custom dialogs (Alpha calls them xdialogs) which are not bound to tables. There are times when the xdialog approach works best, but there are many many times when Alpha Five forms will do just fine with a lot less effort on the developer's part. There is tremendous functionality built in to the default forms already. Discarding it without looking at it would be foolish.

                        Comment


                          #42
                          Re: VFP FoxPro to Alpha5 Questions

                          Stanlyn,


                          According to the User Manual, an A5 database is similar to a VFP project and not a VFP database and only one database can be opened at a time.

                          What a bummer, as there are times where lots of things needs to be copied from one A5 database to another A5 database, like side by side on a dual monitor system, until all coping is done, then close one
                          I suggest you reread this post. You are asking questions that were answered fo the second time. This is one example.

                          .
                          Dave Mason
                          [email protected]
                          Skype is dave.mason46

                          Comment


                            #43
                            Re: VFP FoxPro to Alpha5 Questions

                            Stanlyn,'

                            I came from clipper where there was no gui, no formsw and no report generator. Everything was coded. About all we had was some great database connectivity and a good base of functions. All indexes had to be written in code. Like I said, there was no GUI. I purchased an optimised text editor and a gui built by a clipper programmer to help my efforts. Alpha includes it.

                            Our code was written in a text editor and used in an exe generator. Alpha has a GUI and many places you can put your code(field rules, form, script, udf, etc. Alpha lets you do action scripting, then convert to xbasic that you can study and/or change to your own liking, then put it in a script or udf if it makes more sense). You have a choice of form/xdialog. You have a built in browse on a table or a set of tables. Same thing for the VERY POWERFUL report generator. Only Crystal Reports has a better report writer(and that is debateable due to ease of use). You have operations that can also be saved as xbasic in a script. When you define and operation, action script, etc, alpha converts to xbasic to run. When you convert it to xbasic, you learn and can better optimize it. That is a pretty good deal for learning.

                            I have been with alpha products for nearly 20 years and still find action scripting and operations VERY helpful. I think you will to.

                            A person with no programming skill can make a database in alpha and use it. The programmer can expand it to no limit of ends.


                            .
                            Dave Mason
                            [email protected]
                            Skype is dave.mason46

                            Comment


                              #44
                              Re: VFP FoxPro to Alpha5 Questions

                              Avoid using one name 'inside' another like Zipcode and Zipcode4. Better to use Zipcode and Zip4 or Zip_code4. Or, applying rule 1 above, Zipcodef is already unique from Zipcode4f. Another advantage in this case is that you could easily run a search for "zipcode" if you wanted to find all references to either Zipcodef or Zipcode4f. If you ran a search on just "zip" you might also find, for example, references to zip files used for backup routines.
                              Originally posted by stanlyn View Post
                              Are you saying that if I have 3 fields in a table named zipcode1, zipcode2, and zipcode3, and I searched for "12345" that the system can search all 3 fields for the occurance of "12345"...
                              Yes and no.

                              My original statement, the one at the top here, actually refers to a developer running text searches on the code itself. These searches are very useful when making changes to existing applications. For example, let's assume a customer asks for something that requires modifying an index. Running a search to find every place that the index is used may reveal that the current index cannot be changed and a new index will be required. Without the search capability it's highly unlikely that you will remember every place that the index was used.

                              A5 itself has a built-in routine for running searches on global scripts/functions (as long as they aren't password protected) but there are two 3rd party addins that search the entire application to extract all the scripts, functions, expressions, etc. that are used within the database and these "extraction lists" can be searched for specific phrases. One of those 3rd party addins is A5 Doc which is available from Alpha and was originally intended primarily to create printed documentation about the application but also has the ability to search for specific text. The other is my own AIMS App Analyzer that is designed specifically for running text searches, automates the common ones, and saves the results in a text file for immediate access. The reason I developed the App Analyzer is that earlier versions of A5 Doc had very weak search capabilities that were very time consuming. If you want to create printed documentation of your app, A5 Doc is the only choice. If you want to run text searches on your code the App Analyzer is the better choice - in my somewhat biased opinion.

                              Now, to your specific question. There is a pair of <tbl>.Locate_next/prev() commands that will search all fields (or a specific field) for any text. Each command only finds the next/prev record but these commands could be used in a script to search the whole table if that is what you need.

                              By the way, you may be seeing now why the original comment was made about posting questions on separate threads. People on this board are very good about helping. You often get multiple responses within an hour of posting a question - even late at night. The result is that this thread is beginning to get rather confusing due to all the different topics being discussed.

                              Comment


                                #45
                                Re: VFP FoxPro to Alpha5 Questions

                                Originally posted by stanlyn View Post
                                In evaluating a language, the language needs to be able to do everything (100%)via code with no execptions. Does A5 fit here?
                                Almost 100%. You can't create a form w. xbasic. But you can create xdialog forms w. code. As a matter of fact xdialog forms can only be created w. code. I ran into something recently that could not be done by code. For the life of me I can't remember what it is. But that was a rare exception.

                                2. Also you can also easily protect, hide, and secure a sql database so that anyone with notepad or a hex editor cannot even get to it to perform their magic.
                                A5 Platinum supports backend SQLs (but you already knew that).

                                Can a 2nd instance of A5 be opened on the same database with the only thing locked being the executing task on instance 1?
                                Each running instance of A5 can have only one database (adb) running at one time. You can open as many instances of A5 as your memory will support. BUT, you can only have one cope of a particular dataabse running at one time, unless you have more that one license (developer or runtime).

                                Your attachment shows all fields being searched via the UI, I was specifically wanting to see the code that allows me to search several fields at once for a value. Is that possible?
                                As Cal stated, you can use the <>.locate cmmand.

                                This code I'm asking for may not even be on a form, but may be used to filter data for a report?
                                No problem

                                With code you should be able to do most anything...
                                Yes.
                                Peter
                                AlphaBase Solutions, LLC

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


                                Comment

                                Working...
                                X