Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is this a bug or normal VFP behavior?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00610105
Message ID:
00610119
Views:
20
It is so if you have a large statement,
eg
Select * ;
   From MyTable ;
   Where X = Y ;
   AND Y = Z ;
   GROUP BY X ;
   ORDER BY X ;
   INTO CURSOR C_Temp
you can comment it out with a single * in front of the first line.
Unfortunatley the syntax coloring does not pick this up, and hence does not mark all the lines as being comments. They get picked up by the compiler though.



>Hi all,
>
>I am wondering if this is VFP bug. I have VFP7 with VFPCOM & SP1 installed.
>Notice the commented line in the code. If there is a semicolon at the end
>of the comment; the SELECT Y command will fail. If you remove the semicolon
>at the end of the comment; the SELECT Y will NOT fail.
>
>
>close databases all
>create cursor x (fld c(1))
>
>* select * from x ;
>select * from x ;
>	into cursor y
>
>select y
>
Previous
Reply
Map
View

Click here to load this message in the networking platform