Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_SCREEN headach
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00111675
Message ID:
00111682
Views:
14
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
Previous
Reply
Map
View

Click here to load this message in the networking platform