Tianxing,
Try using the FOR EACH command instead... It will process for each object in the array for you...
for each loForm in _screen.forms
if loForm.class == 'myclass'
do something()
endif
endfor
>Hello.
>
>I want to go thru all the forms in the _SCREEN.Forms array
>to check for the existence of certain forms.. so my code is:
>
>LOCAL I
>FOR I = 1 TO _SCREEN.FormCount
>
> IF _SCREEN.Forms[I].class == 'myclass'
> DOSOMETHING()
> ENDIF
>ENDFOR
>
>
>and yet, when i execute teh above, the fox interpreter
>gives me error 11:
> "Function argument value, type, or count is invalid"
>
>can anybody help me on this? thanks