Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Moving from 7 to 9
Message
De
13/09/2006 02:21:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01152911
Message ID:
01153203
Vues:
27
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform