Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Enable / Disable All Form Controls
Message
From
12/07/2013 12:28:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Enable / Disable All Form Controls
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01578324
Message ID:
01578324
Views:
56
Greetings All,

Attempting to enable and disable all text boxes in a page frame once the user selects the edit or add button. Here is the code I have in my form method:

DISABLEALL Method:

FOR I = 1 TO THISFORM.CONTROLCOUNT
IF UPPER(THISFORM.CONTROLS(I).NAME) = [TXT_]
THISFORM.CONTROLS(I).ENABLED = .F.
ENDIF
ENDFOR

But it's not going through those textboxes that are listed throughout the 4 pages of the pageframe. the enableall method is quite naturally the opposite, setting enabled to .T.

How do I set all the controls on the pages of the pageframe?
Thanks in Advance.

J. Turner
Next
Reply
Map
View

Click here to load this message in the networking platform