I have this situation in an Active4D method (this example is straight
from the 4D Documentation)...

   QUERY([Invoice];[Invoice]Paid=False;*)
   If($city#"") ` if a city name has been specified
      QUERY([Invoice];[Invoice]Delivery_city=$city;*)
   End if
   If($zipcode#"") ` If a zip code has been specified
      QUERY([Invoice];[Invoice]ZipCode=$zipcode;*)
   End if
   QUERY([Invoice])  ` Execution of query on the criteria

I get an error on the final Query([Invoice]) :

A ";" was expected.  (The right parenthesis of Query([Invoice])  is in
red, so that's where it's expecting it.)

Can't Active4D close and execute a complex query such as this, the
same way 4D does?
_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://vasudev.aparajitaworld.com/archive/active4d-dev/

Reply via email to