Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object.Enable
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00394572
Message ID:
00395606
Views:
8
That's a nice design concept, Jim. I'm going to guess that your base form class has the Editing property, right? So there's no way your txtBase class could get used on a form without an Editing property, otherwise txtBase.Refresh would have to check if Thisform.Editing exists, which would slow things down.

>...
>My txtBase class has a property named editable whihc is logical and this code in the Refresh method;
>
>
>IF This.Editable
>   This.Enabled = Thisform.Editing
>ENDIF
>
>
>This way if I want one textbox to NOT be switched then I just set its Editable property to .F. in the property sheet.
>
>I also have a txtSearch class that has the opposite logic in the Refresh, but it still honors the editable property.
Rick Borup, MCSD

recursion (rE-kur'-shun) n.
  see recursion.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform