Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Variable substitution of two variables?
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Variable substitution of two variables?
Divers
Thread ID:
00188161
Message ID:
00188161
Vues:
55
Hello,
I'm trying to make a generic code like this, where parameters should be evaluated as following:

LPARAMETERS mVar1, mVar2, mVar3
LOCAL lcDir1
lcDir1 = CURDIR() &&for example
mCnt = PCOUNT()
FOR i = 1 TO mCnt
IF FILE(m.lcDir1 + (mVar + i) + ".DBF") && variable mVar not found!
&& Do something
ENDIF
ENDFOR

Of course, this does not function.
Is there a way to work like this? This would save me much work!
Thank you for your time!
Christian Isberner
Software Consultant
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform