>Hi All,
>
>I am trying to confirm a point iro the working of mdot: 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 will VFP need to lookup and resolve 10 vars x 10 fields x 100 recs = 10,000 field/variable references? Would using mdot avoid the need to perform 10,000 field/vars lookups?
Perhaps I am just stating the obvious, when I say that there is no replacement for an actual test program.
It does make sense to assume that you will save VFP some work when you tell it, with m.MyValue, that MyValue is actually a variable and not a field, and that VFP will, in all likelyhood, repeat the process each time the loop runs. But how significant this effect is, compared to the overall execution time, and whether other factors may actually act in the opposite direction, is hard to tell without an actual test.
Regards,
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)