Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Enable / Disable All Form Controls
Message
De
12/07/2013 12:28:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Enable / Disable All Form Controls
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows 7
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01578324
Message ID:
01578324
Vues:
57
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform