Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Evaluate column
Message
 
 
À
02/11/2009 09:46:29
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01432689
Message ID:
01432694
Vues:
45
You have to provide a valid expression as a parameter
ccolval = evaluate('mycursor.COL' + TRANSFORM(i))
>I need help to understand the 'Evaluate' function.
>
>Please try run the following example:
>
create cursor mycursor (id i,col1 c(3),col2 c(3),col3 c(3))
>insert into mycursor (id,col1,col2,col3) values(1,'AA','BB','CC')
>insert into mycursor (id,col1,col2,col3) values(2,'EE','FF','GG')
>
>select mycursor
>scan
>	for I=1 to 3
>		ccolval=evaluate(mycursor+'.COL+str(i)')
>		messagebox(ccolval)
>	endfor
>endscan
>
>Tnx
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform