Hi John,
Try:
FOR piEachControl = 1 TO THIS.ControlCount
IF (THIS.Controls[piEachControl].Class = "Commandbutton")
*- Your code here...
ENDIF
ENDFOR
HTH!
Mark
>Hi,
> How could I get the amount of specific controls in a container e.g. only command button?? After, It would let me to reference it...
>Thank you
"It hit an iceberg and it sank. Get over it."
Robert Ballard, dicoverer of the Titanic wreckage.