Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable boxes on a form a new way to me?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00431650
Message ID:
00431950
Views:
10
>I have textboxes and comboboxes on a data entry form. I am trying to enable textboxes and comboboxes when I press the Edit button on the form, but it is not working and I am puzzled as to why. Am I missing something here?
>
>Form Init coding:
>PUBLIC isediting
>isediting = .F.
>
>Textbox Object When Event coding:
>RETURN isediting

Hi Steve,

I haven't checked yet what others said about this problem, but one for sure: don't use public variable. Use form property instead. In our base class form we have property EditMode.

The simplest idea: EditMode_Assign
thisform.SetAll('enabled',mNewValue) && Check help on SetAll, I write off the top on my head.

HTH
>
>Edit Button coding:
>isediting = .T.
>
>It looks easy enough, but NOT today!
>TYVMIA
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform