Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Field overlaping local variable - Bug or not ?
Message
From
05/06/2003 09:02:19
 
 
To
05/06/2003 08:03:09
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00796540
Message ID:
00796620
Views:
19
Hi Mike,

I guess you're right. I never really stopped to consider that, but it makes sense (although I wouldn't want to live on the difference). ;)

Alan

>Hey Alan!
>
>Your code will also be faster! The more fields in the current alias, the longer it takes VFP to figure out "ok" is not a field, before returning the memvar content.
>
>Check out http://fox.wikis.com/wc.dll?Wiki~EssentialMDot~VFP
>
>>I used to think that too, but as Jim pointed out, that's what the 'm.' is for. Once you get into the habit of explicitly pointing to what you want - ie - always using alias.field and m.variable, not only will your code become more readable, but Fox will no longer have to guess what you mean, and it will begin to feel more natural.
>>
>>Like I said, I had the same argument you do once upon a time, but I've since changed my mind.
>>
>>Alan
>>
>>>>Hi Srdjan,
>>>>
>>>> Because VFP read as first field OK from cursor test before variable.
>>>>
>>>
>>>Hi Martin :)
>>>
>>>I understood what is happening - What I am saying is that this situation shld be handled somewhat differently by VFP.
>>>
>>>That is all.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform