Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro Substitution Fails
Message
 
 
À
18/03/2003 15:54:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00767234
Message ID:
00767257
Vues:
10
Because it would work w/o evaluate too. Try ? EVALUATE('getfield') = getfield
*testeval.prg
CLEAR
?'Sending prof_sc'
getfield='prof_sc'
? EVALUATE('getfield') = getfield
value1 = WORDHIDE(getfield)
?value1
?'Sending junk'
getfield='junk'
value1 = WORDHIDE(getfield)
?value1
>Then why does the below work? Am I missing something?
>
>
>*testeval.prg
>CLEAR
>?'Sending prof_sc'
>getfield='prof_sc'
>value1 = WORDHIDE(EVALUATE('getfield'))
>?value1
>?'Sending junk'
>getfield='junk'
>value1 = WORDHIDE(EVALUATE('getfield'))
>?value1
>
>*wordhide function xstr param should = 'prof_sc' in this example only
>FUNCTION wordhide
>PARAMETERS xstr
>
>? xstr
>IF LOWER(xstr)='prof_sc'
>	RETURN 'mdr_dob'
>ELSE
>	RETURN 'unknown - prof_sc was not passed to this program'
>ENDIF
>
>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform