Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Advanced: nested whiles, interpreted in runtime
Message
 
 
À
01/09/2003 13:17:03
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00825087
Message ID:
00825153
Vues:
14
It depends on VFP version, you're using. If it's VFP6, you would do:
lcTempPrg = m.lcPath + "temp.prg" && create name on the fly, I'm simplifying
if strtofile(myMemo,m.lcTempPrg) && it would never fail
   compile (m.lcTempPrg)
   do (m.lcTempPrg)
   erase (m.lcTempPrg)
endif
In newer versions you can just use execscript function.


>Does somebody has any idea of how to achieve this task?
>
>I save in memo fields validation routines.
>I run those routines then using macro substitution.
>It works but I want to have nesting Whiles and If blocks.
>Any sample code?
>
>thanks in advance,
>Pablo Velazco
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