Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
TEXT oddity
Message
From
13/09/2023 17:09:06
Bill Fitzgerald (Online)
Woodbury Systems Group
Hamilton, New Jersey, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
TEXT oddity
Miscellaneous
Thread ID:
01687052
Message ID:
01687052
Views:
95
I use TEXT to create SQL commands e.g.:
TEXT TO lc_sqlstring 
        select *   from hhpickup  where left(storecode,11) = ?lc_pickupstore and ( CAST(pickupdate AS date) =
         ?ld_date1 OR
         CAST(pickupdate AS date) =  ?ld_date2 OR
         CAST(pickupdate AS date) =  ?ld_date3)
         AND NOT EXISTS (SELECT idcol FROM depdetail WHERE store = hhpickup.storecode AND RIGHT(RTRIM(LTRIM(sealnumber)),7) =
		  RIGHT(RTRIM(LTRIM(hhpickup.sealnumber)),7)
         and postingdate <= ?ld_entdate)
         ORDER BY sealnumber

ENDTEXT
That worked for hundreds of thousands of different iterations but today, in one case, the text appeared on the form that was executing it. I added NOSHOW and all was well again.
What happened?
Anyone who does not go overboard- deserves to.
Malcolm Forbes, Sr.
Next
Reply
Map
View

Click here to load this message in the networking platform