>>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