Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Command Button group
Message
From
11/05/2005 12:29:34
 
 
To
11/05/2005 12:02:54
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01011123
Message ID:
01012969
Views:
24
This message has been marked as the solution to the initial question of the thread.
I do, and your fix:

IF !THISFORM.buttonset1.editmode
THISFORM.vSearchvalue.ENABLED = .T.
THISFORM.vSearchvalue.READONLY = .F.
ELSE
THISFORM.vSearchvalue.ENABLED = .F.
THISFORM.vSearchvalue.READONLY = .T.
ENDIF

worked great. I posted it here in case others were curious.

Thanks!

>You should have a reply in your box now.
>
>>Will do. I'll get it together in a few minutes and fire it off to your email address.
>>
>>Thanks!
>>
>>>I am not sure what the problem is. That is how I have my code and everything works.
>>> Would you be willing to zip up the form and table to send me and I can look to see what we are both missing?
>>>>Absolutely nothing - just what you told me. With the textbox name changed from "text8" to "vSearchvalue".
>>>>
>>>>>What else do you have in the refresh method?
>>>>>>I put that in there - no good. The search box is still read-only.
>>>>>>
>>>>>>>Should be just:
>>>>>>>
>>>>>>>IF !THISFORM.buttonset1.editmode
>>>>>>>  THISFORM.text8.ENABLED = .T.
>>>>>>>ELSE
>>>>>>>  THISFORM.text8.ENABLED = .F.
>>>>>>>ENDIF
>>>>>>>
>>>>>>>
>>>>>>>>>Sorry, took so long getting back to you, I took a 4-day weekend.
>>>>>>>>
>>>>>>>>No problem at all. I hope you enjoyed your weekend! :)
>>>>>>>>
>>>>>>>>>did you go into the refresh method of the textbox or the form and put in the code for setting the enabled equal to .T. for that textbox?
>>>>>>>>
>>>>>>>>I've tried that, and it had no effect. Maybe I'm entering that piece of code incorrectly? What, exactly, would the syntax be for the Refresh method code?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform