Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
&& within string gives error
Message
 
To
09/01/2002 20:43:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00601634
Message ID:
00602821
Views:
31
>Are you using it within strings? If yes, would you like to describe why?

How about
cFld1= "DateFld"
cFld2= "TimeFld"

cSQL= "SELECT * FROM MyTable ORDER BY &cFld1, &cFld2"
&cSQL
Although I know most people wouldnt not write it this way, some might,
Looks neater then
cSQL= "SELECT * FROM MyTable ORDER BY " + m.cFld1 + "," + m.cFld2
but I still prefer the second way.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform