Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return the name of the variable?
Message
De
24/09/1999 17:40:23
 
 
À
24/09/1999 17:31:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00268809
Message ID:
00268814
Vues:
20
>Anyone know how to return the name of variable.
>
>Thanks

Ahmmm... in quote?

Return what sort of variable from where to where?

maybe you want something like this?
* main.prg
myvar = whichvar(7)
? myvar, eval(myvar)
return

procedure whichvar
lparameter counter
do case
    case counter = 7
      myreturn = "variable7"
    otherwise
      myreturn = "variablex"
endcase
--Todd Sherman
-Wake Up! Smell the Coffee!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform