Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The m. variable thing, the sequel
Message
From
06/01/2005 09:56:04
 
 
To
05/01/2005 17:30:36
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00969478
Message ID:
00974681
Views:
61
<snip>
>2. Whether you use naming conventions or not, VFP by design considers all variables that are not prefixed with Mdot as ambiguous references that must be resolved at runtime. It has to perform a lookup in the list of fields in the current workarea for every variable that is not prefixed with Mdot. Unless I am not understanding how VFP internally handles this ambiguity, using Mdot immediately identifies it as a variable and effectively short circuits the resolution process, bypassing the field list altogether. That should provide a performance boost, especially when many variables are referenced and the current workarea has many fields. An added benefit is that it eliminates any potential future bug should someone ever add a field with the same name.


Hi Elmer,

So if I have a file with 10 fields and 100 records and I need to scan through this file and inside my loop I reference 10 variables then VFP will need to lookup and resolve 10 vars x 10 fields x 100 recs = 10,000 field/variable references? Is that your understanding?
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform