Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
What's wrong with this SPT containing dates
Message
From
10/07/2006 10:15:06
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Database:
MS SQL Server
Miscellaneous
Thread ID:
01134926
Message ID:
01134967
Views:
14
This message has been marked as the solution to the initial question of the thread.
>Hi Sergey
>
>I am sorry it was my bad. I was putting a comment to the code and I somehow managed to put the code *inside* the text endtext.

You could put comments as many as you wish, but don't use VFP comments chars [* or &&] use SQL Server ones [-- or /* */]
Something like:
TEXT TO cVar NOSHOW
     SELECT MyField,    -- This is the first field
            SecondField -- SecondSelected field
     FROM MyTable       /* This is the table */
ENDTEXT
SQLEXEC(.....)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform