Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Use of macro substitution
Message
 
 
À
09/03/2003 11:18:23
Cindy Winegarden
Duke University Medical Center
Durham, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00763410
Message ID:
00763646
Vues:
11
<snip>
>When using macro expansion with an object property you use two dots - one is the usual dot and the other denotes that the macro expansion ends "here." The expression would look like:
SCATTER NAME THISFORM.MyProperty
>lcProperty = "MyProperty"
>? THISFORM.&lcProperty..Field1
>I tried every combination of your ThisForm.FileName property and "&" and extra dots and always got an error of some sort, but I can't say exactly why it doesn't work.

Cindy,

It doesn't work because Sql Select expects table/cursor name or alias but macro substitution either breakes on the dot in ThisForm.FileName or result of nacro substitution isn't a name. You would have the same problem with your object example if instead of lcProperty variable you use Thisform.cProperty.
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform