Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Label on last page's footer
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00614141
Message ID:
00614957
Vues:
30
>Yes, it is. Me either until Larry pointed to it.

BTW, it's in VFP6.0 as well. However, when I type _vfp.SetVar in command window, the SetVar is not becoming blue as a reserved word. However, I found it in Help.

Nice tip from Larry (BTW, I missed the original thread, fortunately I saw this one).

>
>>Sergey,
>>
>>That's cool...I wasn't aware of the setvar() function.
>>
>>>>
>>>>Is there any reason why you prefer using EXECSCRIPT() over _VFP.Setvar() siggested by Larry Miller ?
>>>
>>>Here's the result of the tests I ran
>>>
>>>Command                Time        # of itterations
>>>
>>>Execscript            1.693        100
>>>_VFP.Setvar           0.000        100
>>>
>>>Execscript           16.984       1000
>>>_VFP.Setvar           0.010       1000
>>>
>>>As you can see VFP.Setvar is much faster. It's understandable, because Execscript() has to write code to the file, compile it and run from the file. _VFP.Setvar on other hand is built-in method of _VFP object. In addition _VFP.Setvar can work with local variables.
>>< SNIP >
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform