Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine if controlsource is a field or a variable/prop
Message
 
 
À
15/07/2009 18:45:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00592686
Message ID:
01412619
Vues:
35
>>What if the ControlSource is a complex expression? How would we determine if it's an expression or a real field?
>
>Right... I think
>
>
lcAlias=juststem(.controlsource)
>if lcalias#.controlsource and used(lcAlias)
>   * we have a table
>else
>   * not a table - check whether it's a property, variable etc
>endif
Thanks, Dragan. I found that in CreateTag method that used the original Vlad G code I have code like that checking for the expression already. In the SetOrder method I just added check for used() for now.

BTW, since I got your attention - do you know where this may be coming from

"Your changes could not be saved. A transaction can not be started"
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform