Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Macro Substitution Fails
Message
 
 
À
19/03/2003 09:11:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00767234
Message ID:
00767512
Vues:
9
Tracy,

The only way macro substitution would work in your code if you've something like
getfield = "somevar"
somevar = "prof_sc"
? getfield, &getfield
The 'somevar' could be memory variable or table field.

>Hi Sergey,
>
>This is strange, in my small tests, if getfield = "prof_sc" then WORDHIDE(EVALUATE('getfield')) would pass the value 'prof_sc' to the wordhide function.
>
>However, in my app, it bombed--it passes 'getfield.'
>
>Also in my tests, running WORDHIDE(&getfield) failed, but it works in my app. I have checked SET UDFPARMS. Very strange. For now, I am sticking with what works til I can determine why it works sometimes and sometimes not.
>
>It appears to work in my FPD26 app as well using WORDHIDE(&getfield) while it would not work in my tests in either version. I must have UDFPARMS set differently somehow I guess?
>
>What I cannot understand is why WORDHIDE(&getfield), which was my original attempt, started working?
>
>Hmmmmmmmmmm
>
>Thanks,
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform