General information
Category:
Coding, syntax & commands
Hi all,
Here is a little quirk I've found in VFP8sp1:
1. Start VFP with no tables loaded, no task pane, etc. "raw" as possible
2. Create a visual class of type form
3. Put the following code in a method
temp1 = [X]+right(sys(2015),4)
temp2 = [X]+right(sys(2015),4)
4. Try to save the method
I get a syntax error on "temp2 = [X]+right(sys(2015),4)"
The following are acceptable to the syntax checker
temp21 = [X]+right(sys(2015),4) && Is fine
temp12 = [X]+right(sys(2015),4) && Is fine
temp22 = [X]+right(sys(2015),4) && Is fine
temp2 = [X]+right(sys(2015),4) && Throws a syntax error every time!
I've tried this on several machines with the same result. Weird!!
By the way, it compiles fine in a prg!
Gary
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only