Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable/disable controls
Message
From
01/03/2002 06:51:57
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00626721
Message ID:
00626880
Views:
13
If you must loop..
thisform.setenabled(.t.)
thisform.setenabled(.f.)

function Setenabled
lparameter tlOnOff

for each pgf in this.pageframe1.pages
    for each oCtrl in pgf.controls
        if pemstatus(oCtrl,'enabled',5)
            oCtrl.enabled = tlOnoff
        endif
    endfor
endfor

endfunc
>I have a pageframe that contains about five pages. Each page has a number of textbox and other controlboxes. I there a way for my to cycle though all the control to enable/disable without writing individual enable/disable code for each control?
>
>Thanks
>nick patel
Previous
Reply
Map
View

Click here to load this message in the networking platform