Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine if controlsource is a field or a variable/prop
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00592686
Message ID:
01412673
Views:
49
Hi Naomi,

>What if the ControlSource is a complex expression? How would we determine if it's an expression or a real field?

Precisely for these reasons I've given up on trying to figure out the content of the ControlSource myself. When I have a complex control that needs it's own control source, I use an invisible textbox for data storage and retrivial. The complex class creates this textbox, sets the controlsource to its own property and then uses the Value property to read and write. Any code that tries to parse the ControlSource only works in specific environments, but a generic solution is quite complex.
--
Christof
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform