Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Between 2 dates
Message
 
To
14/11/2023 04:27:20
Luis Santos
Biglevel-Soluções Informáticas, Lda
Portugal
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01687236
Message ID:
01687243
Views:
39
>
>TEXT TO lcSQLCmd NO SHOW PRETEXT 15
>SELECT * 
>       FROM DOCUMENTOS 
>WHERE  FECHA BETWEEN ?FECHA AND ?DATE()
>     AND tipodocu = 'F'
>      And  NOT DELETED()
>ORDER BY ID_ISO, FECHA, numdocu ASC
>ENDTEXT
>
>
>Hi Borislav,
>
>Thanks for the reply, everything works great!
>
>Best regards,
>Luis

You named variable as name from the table.
That is no good because VFP prioritize Field values.
CREATE CURSOR Test (Fld1 C(10))
INSERT INTO Test VALUES("aaaaaaa")
LOCAL Fld1 
Fld1 = "BBBB"
? Fld1
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Reply
Map
View

Click here to load this message in the networking platform