Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
To Disable or Not to Disable
Message
From
24/10/1996 06:03:13
 
 
To
23/10/1996 12:38:10
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00010779
Message ID:
00010844
Views:
31
>>>I have a large program we use internaly to act as a cash register. I need to enable and disable constantly. Usualy this is done in sections.
>>>I have done my best to cut down on cade but there are at least 20 objects with 65 line of
>>>
>>>this.parent.thebutton.enabled = .F.
>>>
>>>Is ther a way to group these things
>>>
>>>like:
>>> disable.these.20.buttons()
>>>
>>>or
>>> enable.allthese.bttons()
>>>
>>>thanks
>>>
>>>sory.for.the.bad.humor()
>>
>>Try to use Setall method (can disable all controls of any or particular class).
>
>I would also make the group enabling or disabling of buttons a new method on the form, so that your code is only in one place.
>
>I.love.bad.Humor(!)

Wow, I didn't know the Humor method took any parameters, great!!! :-)
Alexandre Nobre
Alpha Bytes Computer Corp.

Did you know that there are innocent people dying in East Timor?
It helps if you do...

I suppose you don't need glasses if you're able to read this line

Previous
Reply
Map
View

Click here to load this message in the networking platform