Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hiding a read only control from count
Message
De
14/05/1998 17:28:34
 
 
À
14/05/1998 14:43:30
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00098865
Message ID:
00099614
Vues:
24
>>Can anyone tell me whether it's possible to 'hide' a control on a form so that it is not counted in a control count? This issue has arisen because a query I'm working with tries to use all of the controls on the form in its count and display, and I have several at the top which are for read only purposes (and from another table besides).
>>
>>Thanks for your help.
>>
>>Sylvia
>
>You can always count this number of controls. Following is simplified example (it should be extended for container controls):
>
>local nNotReadonlyCount
>nNotReadonlyCount=0
>for n=1 to thisform.controlcount
>	if type("thisform.controls(n).readonly")="L"
>		if thisform.controls(n).readonly=.f.
>			nNotReadonlyCount=nNotReadonlyCount+1
>		endif
>	endif
>endfor
>=messagebox("Total Controls Counted: "+str(nNotReadonlyCount))
>
Edward

Thanks for the tip. I'll try this.

Sylvia
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform