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

odd filter behavior

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

    odd filter behavior

    here's a filter that doesn't work

    marked() .or. occupied=.f.

    and here's one that does

    marked() .or. .not. occupied

    Important Note: In the last maybe 10 days I bought a new computer and 2 new flat screen monitors from Dell - as an experiment I tried negotiating a price. I got over 15% off the already discounted offer on the computer and about 10% off the monitors. My approach was 'I really need this, but need the price to come in around xxxx' - they conferred with their I guess manager, and came back with a yes!!! Must be the new economic climate.
    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

    #2
    Re: odd filter behavior

    Martin

    I might not be testing this in the environment (form etc) that you are - I just used the default browse and query by expression.

    Marked() .or. occupied=.f.

    Brought up the correct records - see the thumbnails - the first one is my test browse with most of the records showing and the second is the test browse after using the query by expression. Both expressions work .

    Tom Baker

    Comment


      #3
      Re: odd filter behavior

      Martin,

      Maybe you got a bargain on the computer because the bit is missing that recognizes occupied=.f. :)

      I can not remember where or when but I have had that issue along the way with previous versions as well. Now I always use .not. Logical to test for false and simply Logical to test for true

      Did you try marked() .or. (occupied=.f.) ?
      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


        #4
        Re: odd filter behavior

        I would think

        Code:
        marked() .or. [COLOR="red"]([/COLOR]occupied=.f.[COLOR="Red"])[/COLOR]
        would work just fine.

        Thanks for the tip about getting better pricing.

        -- tom

        Comment


          #5
          Re: odd filter behavior

          PS: Tom, I was talking to my son, and he had the same experience when buying some cabinets from Lowes. He asked for a discount and they gave him one. This is really new, as historically retailers would not budge on their prices.

          thanks - will try that iteration - didn't even think of that possibility

          Tim, I haven't even unboxed the computer yet - its Windows 7. I have never even seen a computer with Vista, much less used one - i.e. will be totally new with anything past XP. But I am committed to try to learn 7 and if possible make it my main development computer. Any day now I'll start having clients with it, so I need to learn how to get around in it, and get it to work with many versions of Alpha, from 4.5 thru 10.

          Since it has been confirmed that 4.5 will work in the new virtual machine that MS will let you download, I am feeling more confident I may be able to manage everything from a single development computer. But in all honesty, I am really not looking forward to the experience. Will be interesting what the Alpha licensing complications will be. With 4.5, none, of course, but with 5 thru 8 there may be some.

          Is anyone watching NE/NO - man my boys in NO are kicking @*%^#
          Last edited by martinwcole; 11-30-2009, 10:55 PM.
          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


            #6
            Re: odd filter behavior

            Whether adding parenthesis around the logical works is of interest.....but to further and more thoroughly test this in a few cases that I have run across where just the single argument of occupied=.F. would not work and .not. occupied would. I even had the case of occupied=.T. not work and resorted, as Tim, to just using occupied.

            I will have to find the specific script(s) I had to do this. ---seem to remember it was part of one of the few questions I posed on the messageboard so may be findable (word??).

            Martin....could you test this with your scenario also....just have the occupied=.F. If it does not work by itself see if adding the parenthesis cures it.
            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


              #7
              Re: odd filter behavior

              Mike, that seemed to do the trick
              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


                #8
                Re: odd filter behavior

                Just to clear my mind on this, I thought a logical field was by default .F.

                Also as I understand it now in V10, logical fields must be tested for their value.
                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


                  #9
                  Re: odd filter behavior

                  To everyone,

                  As I have said before, using parenthesis does not cause and measurable speed penalty. Expression "Operator" precedence is relevant, and is not always quite as you may think. So, use parenthesis liberally, and you will never have an issue, plus, both humans and software will know exactly what you intended.

                  In versions I have tested (and has not ever changed as far as I know), and Alpha 5 expression is actually evaluated from the right side to the left side. This has no normal importance unless you use more than 1 not "pure" function in the expression.

                  Hi Martin,

                  Originally posted by martinwcole View Post
                  But I am committed to try to learn 7 and if possible make it my main development computer. Any day now I'll start having clients with it, so I need to learn how to get around in it, and get it to work with many versions of Alpha, from 4.5 thru 10.
                  Remember to name the new development computer the same name as your older one, and you will have little trouble moving and activating your Alpha versions, and my CSDA Code Utility, both which are tied to the machine name.

                  Originally posted by martinwcole View Post
                  Will be interesting what the Alpha licensing complications will be. With 4.5, none, of course, but with 5 thru 8 there may be some.
                  Alpha shouldn't have any licensing issues, just compatibility with the particular windows environment


                  Hi Keith,

                  Originally posted by Keith Hubert View Post
                  I thought a logical field was by default .F.
                  It is, but it is not a good programming method to depend upon.

                  Originally posted by Keith Hubert View Post
                  Also as I understand it now in V10, logical fields must be tested for their value.
                  This can't be correct, at least in XBasic. Thousands of lines of code would fail in Alpha internal code as well as everyone's applications, and makes no sense for an expression evaluator. This may be an issue in some of the web server object menu settings, as it is xdialog code prompting for selections that it is converting to an XBasic, so it's syntax could be different, but I kind of doubt it. Can you find a reference to that statement?
                  Last edited by csda1; 12-01-2009, 10:13 AM.
                  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


                    #10
                    Re: odd filter behavior

                    Hi Ira,

                    You are quite correct, this is to do with Web Apps. Just so everyone does not get into a panic about their old desk top code running in V10.

                    Relase Notes October 15:
                    Grid Component - Client Side Expressions - There are several places in the Grid where you write 'client-side' expressions. For example Show/Hide expressions, Enable expressions, Conditional Images, and Conditional Formatting. Client side expressions are evaluated in the Browser (using Javascript). When you write a client-side expression in the Grid builder, you use a special syntax that Alpha Five can then convert to Javascript. There has been a change in how you must use Logical fields in your client-side expressions.
                    Now, when you reference a Logical field, you must explicitly test its value using this syntax
                    LogicalField = true
                    or
                    LogicalField = false
                    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


                      #11
                      Re: odd filter behavior

                      Originally posted by Keith Hubert View Post
                      You are quite correct, this is to do with Web Apps. Just so everyone does not get into a panic about their old desk top code running in V10.

                      Relase Notes October 15:
                      It really refers to certain code areas within the WAS that apply Alpha's user-friendly "version" of JavaScript. Xbasic is still xbasic in the WAS.
                      Peter
                      AlphaBase Solutions, LLC

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


                      Comment

                      Working...
                      X