Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Moving from 7 to 9
Message
From
13/09/2006 02:21:39
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01152911
Message ID:
01153203
Views:
22
>>Kidding aside, I have seen noticable improvements by my approach in functions which are used inside loops.
>
>Actually inside a loop a macro expression should not re-evaluate... The parser only hits it once and injects the code it comes out to.
>
>That's why in some situations & can be more efficient than EVAL()...
>
>But if you can avoid Macros - by all means do - it's always faster to not use EVAL or &.

When I wrote inside a loop, I ment something like this
Scan
  Do myfunc
Enddo
Procedure Myfunc && This procedure typically is in separate procedure file
  lcSet=SET('somesetting')
  Set somesetting off
  code
  more code
  ...
  if lcSet='ON'
    set somesetting on
  endif
EndProc
Previous
Reply
Map
View

Click here to load this message in the networking platform