Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scatter Name to the same object?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00967131
Message ID:
00967146
Vues:
8
Hi Alex,

A variable in the parenthesis in place where name is expected by VFP is called Name Expression. Here's a dumb example that demonstrates name expression.
lcMyobject = "This"
SCATTER NAME (lcMyobject) ADDITIVE
As you can see '(lcMyobject)' is substituted by VFP with the name stored in the variable.

>
>for some strange reason I tried the whole time to put "This" in brackets - SCATTER NAME (This) ADDITIVE - and it didn't work.

>>Try
DEFINE CLASS myclass as custom
>>   PROCEDURE Init
>>   USE mytable
>>   SCATTER NAME This ADDITIVE
>>ENDDEFINE
>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform