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

Field to field comparison

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

    #16
    Re: Field to field comparison

    Scott,
    First, sorry for stealing your thread, but I can't pass up a good debate.

    Usually no filter at all except for very specific situations (have read that filtered indices can corrupt more easily--not proven IMO).
    Give me knowledge of filters or indexes... filters win hands, feet, nose, ears, hair...whatever...down. You must know filters to work with Alpha. You can get by without indexes. I steer as clear as I can of indexes unless needed (exist() is one of the few I use when there are many records). Why...because... another item to build, another name to remember, and as your above quote tells.... they can become corrupted, and another headache. Filters never have curruption issues unless the data is currupted. And for multi-parameter/field needs an index is not useable. So unless the number of table records is large, and the speed to discover a field value is critical.... Right or wrong, I will always use the reliability and constancy of a filter over an index. I then don't have to build an index, remember an index name (which would be a good wishlist item to put index list under Menu > Code > 'Indexes'), or worry about index corruption/maintenance.

    OK, now it's time for me to have.... enough said. :D
    Mike W
    __________________________
    "I rebel in at least small things to express to the world that I have not completely surrendered"

    Comment


      #17
      Re: Field to field comparison

      Mike_W - for what it's worth, I prefer to use indexes wherever feasible. Working with a previously sorted table is almost always faster than opening an unsorted table and then sorting it to fetch or find desired records. This is why Alpha uses LQO when an appropriate index is available. -- tom

      Comment


        #18
        Re: Field to field comparison

        Mike,

        Actually not much of a debate here at all!
        I agree that filtering syntax is something that should be of the highest priority for someone using Alpha (or any development tool) to learn---and initially it is not an easy task, but once learned, everything seems to just fall into place much more rapidly. I would say that a large part of the questions on the message board are related to syntactical problems, especially when trying to create a filter.

        Compared to understanding filtering syntax the learning curve of what an index is, what it does, and how to use them is very, very small (but important to fully utilize the power of Alpha).

        Also, even if a developer such as yourself does not create or directly use indices, they are still created by Alpha when necessary many times that are used for situations that a developer causes whether it is known or not.....and these are just as corruptible as ones created directly....so IMO this should not even be considered as to whether a developer should use indices as they are present regardless--a table "without" an index showing will have the invisible, "__A5_Record" index with the order of RecNo(). Only truncated "__A5_Record" indexes visibly show up usually as "__A5_Recor" (10 characters).

        '=================================
        Scott, we are all waiting to hear back as to which method you feel most comfortable with....in the meantime, obviously, we tend to discuss things that hopefully are at least a bit related to the thread topic! :)
        Last edited by MikeC; 04-16-2011, 12:44 AM.
        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


          #19
          Re: Field to field comparison

          Thanks so much for all the help guys. Well.... I tried modding my code as "Mile C." suggested by adding the comma within my ui message box, but still nothing happens. I debugged the code and took it line by line. It appears to work but then just ends without displaying the message box. The address I'm checking was copied into the "Nonserve Addresses" table so I know it's there, and I'm on the record in "ameregl3" table that has the address in the field.

          Then I tried Mike W.'s code. Again the same thing... nothing happens. It's got to be something I'm doing but I'm not quite sure what. Although I've been developing this app for our company for over 10 years and changing things as needed I am definitely not the ultimate programmer. I know enough to be dangerous but am far from proficient. Again guys, thanks for all your help. Let me know if you figure something out. Maybe it's a Version 5 problem, not sure. I'm going to go ahead and create 2 new tables in a copy of the database and try it on them to see if it's my tables or something else.

          And just for the record, I usually prefer filters to indexes, but it's just my opinion and it's great to see how many diffrent ways there are to accomplish the same task.

          Thanks Guys,

          Scott

          Comment


            #20
            Re: Field to field comparison

            Scott,
            Try one more thing. When things aren't working for me and it involves a variable, I now always check/try two things. 1-make sure if the variable is character... alltrim(). 2- if it is a filter with an = expression and it should be working but not, I try 'contains'. So, try

            Code:
            DIM tbl3 as p
            dim vadd as C
            dim vfilter as C
            tbl3=table.get("ameregl3")     ' current record in focus on the form
              vadd=tbl3.address
              vfilter=s_quote(vadd) + " $ address"
              if a5_get_records_in_query("nonserve addresses",vfilter)>0
                 ui_msg_box("Attention","This is a NON SERVICE address. Do NOT Proceed",48)
              end if
              End
            Mike W
            __________________________
            "I rebel in at least small things to express to the world that I have not completely surrendered"

            Comment


              #21
              Re: Field to field comparison

              Ok Guys... so I just got off the phone with Tom Cone and he figured out exactly what was wrong.... OPERATOR ERROR!!!!!!! Unfotunatley, when I copied the address into the other table, I left part of the address that was copied previously.... therefore, pf course it didn't match and bring up the message box. Sometimes, you have to be smarter than what you're chasing.

              I believe all the previous code would have worked if not for my "stupid" attack. Thanks to all for your help. It was truly appreciated.

              At least no more banging my head against the wall...lol.

              Scott

              Comment


                #22
                Re: Field to field comparison

                That's one of the reasons that a working example is the preferred method for explaining issues...

                It fills in the gaps that we all leave in our explanations..
                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


                  #23
                  Re: Field to field comparison

                  Thanks Al,

                  That is true and I probably should have done that. My fault for being lazy..... Thanks for the reminder though.

                  Scott

                  Comment


                    #24
                    Re: Field to field comparison

                    Scott,
                    This is where "contains" is useful. It probably would have worked and you could have figured it out sooner.
                    Mike W
                    __________________________
                    "I rebel in at least small things to express to the world that I have not completely surrendered"

                    Comment


                      #25
                      Re: Field to field comparison

                      Hey Mike,

                      I guess as my Grandmother used to say, "The stupid shall be punished"...lol.

                      Comment

                      Working...
                      X