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

Invalid or Incomplete Expression

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

    Invalid or Incomplete Expression

    Process_mth = Var->v_mth.AND.Type="Deposit".AND.Amount>500
    I also tried 500.00 with same error message.

    What's wrong with the above expression? Looked at the Help System and was not able to determine the error.

    I'm trying to use this as a filtered expression leading into a report.

    Thanks,
    Rudy

    #2
    Re: Invalid or Incomplete Expression

    Likely the report doesn't recognize the var->v_mth variable. Where and with what scope is it defined?
    There can be only one.

    Comment


      #3
      Re: Invalid or Incomplete Expression

      Rudy

      We can't figure this out from what you've posted.

      You have 3 parts of your filter

      a .and. b .and. c

      Test each part individually - in fact you may need to look at each field/variable individually

      then build a .and. b then b .and. c
      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: Invalid or Incomplete Expression

        The HELP file contains pretty complete information on how to write expressions, including filter expressions. A useful trick is to let Alpha Five write the expression for you using the Filter Builder. You can also use the Query Genie to define and run a query against the same table or set. In both cases you can view the xbasic filter expression Alpha creates.

        Comment


          #5
          Re: Invalid or Incomplete Expression

          If this is your report filter, then you might have to make an adjustment on "Deposit" part by changing it to something like this \"deposit\" so the quotes will get recognized properly.
          Mike Reed
          Phoenix, AZ

          Comment


            #6
            Re: Invalid or Incomplete Expression

            Hi folks,

            Process_mth = Var->v_mth is working fine. I added the Type and Amount part for a different report.

            Comment


              #7
              Re: Invalid or Incomplete Expression

              Are the type and amount fields in the same table and is this the same table. Is the report based on this table or a set in which this table is the parent?

              Since you won't provide much information all we can do is guess at what is wrong

              What does "leading into a report" mean. Is your filter the filter for a report or the filter you are feeding into a report.print() statement?
              There can be only one.

              Comment


                #8
                Re: Invalid or Incomplete Expression

                The fields are in the same table, not set.
                v_mth is a Global Variable that I accept jusy before entering the report. I have an in-line basic routine which captures the month from a pick list and passes it on to the report. I place the v_mth valiable in my report heading so I know that part works.

                I createdan expression which states
                Process_mth=Var->v_mth.AND.Type="Check".AND.Amounr>500

                It states <Invalid or incomplete expression> and when I try to save it I get
                EXpression does not evaluate to a LOgical value.

                v_mth is Numeric 2
                Type is Character 10
                Amount is Numeriv 9 2 Decimals

                I ran the filter less the Amount Check and it ran fine. I reported on Month 7 Checks for all Amounts. It won't let me add the Amount>500 and I'm sure it's an error in my coding..

                Comment


                  #9
                  Re: Invalid or Incomplete Expression

                  If you can zip up a sample of the table (from the control panel which will include the support files) we should be able to see what is wrong. Unless your latest post is a typo.

                  .AND.Amounr>500

                  everything should operate as you want.
                  There can be only one.

                  Comment


                    #10
                    Re: Invalid or Incomplete Expression

                    Hey Stan,

                    It was a typo. It was Amount>500. I'll zip it up late tonight or tommorow because I'm at work right now. I work 3 days a week as a security Office aThe latest version of my app is on my desktop at home but I can zip the laptop version which is very close to my Desktop version. I'll point out what table, what button, what scripts and what report is affected.

                    Thanks,
                    Rudy

                    Comment


                      #11
                      Re: Invalid or Incomplete Expression

                      Folks,
                      I blew away and re-built the expression a half dozen times. On the last try, there were no errors and everything worked fine.

                      I just do not understand why this occured. It's very frustrating.

                      Anyway, thanks for all of your suggestions and help.

                      Rudy

                      Comment


                        #12
                        Re: Invalid or Incomplete Expression

                        One thing I didn't think to suggest but I think Tom mentioned was to try each part individually. Since you knew the first two parts worked, the issue was with Amount>500.

                        If you go to the report filter expression builder and type in Amount you should see the value in the Amount field for the current record and its type. If you then type in something like Amount > 500 and the builder won't accept it as a logical expression, it is time to reboot the machine and try again.
                        There can be only one.

                        Comment

                        Working...
                        X