Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Surprise behavior
Message
De
09/12/2003 17:13:47
Gary Foster
Pointsource Consulting LLC
Chanhassen, Minnesota, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00857265
Message ID:
00857445
Vues:
26
Sergey,
That might be it. I've just tried at home and there was no problem. In all three cases I created a class from VFP's base form class. I might have a default include file defined at work. I hope so! I'll have to look on the two different machines that displayed this behavior.

Gary


>Hi Garry,
>
>I put your code in Load and Init of a form and didn't get any errors. Do you've include file in this form? Maybe thre's #DEFINE temp2 ... in it?
>
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform