Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Control Object vs. Container Object
Message
From
20/04/2018 13:48:23
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
20/04/2018 12:52:50
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
01659539
Message ID:
01659566
Views:
67
>The biggest problem in VFP with controls and protected or hidden properties is, that they are still visible in Intellisense and you don't have any indication that they cannot be accessed, until you run into a runtime error. That defeats the purpose of hiding them in the first place and it increases the chance to get an error.
>
>I believe this is one of the main reasons it never got much used in VFP code.

Ouch. I got bitten by that one several times. Since I don't use them (for reasons other mentioned already), I forget them and then stub my toes on them when using components from others who do. Specially when recursing through controls (various decorators, for example), I can't even skip them by checking their class or classlib, because even these properties are hidden. Try/catch is the only workaround which works for all of them.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform