>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