Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screen forms
Message
 
To
20/06/2011 03:15:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01515135
Message ID:
01515136
Views:
122
This message has been marked as the solution to the initial question of the thread.
>Hi All,
>
>I keep getting a message saying "FORMS is not an array" in this code:
>
>
>IF _SCREEN.FormCount > 0
>
>  LOCAL TCUR_FORM
>
>  FOR m.TCUR_FORM = 1 TO ALEN( _SCREEN.Forms )  &&  <- error line
>
>     && some code here
>
>  NEXT
>
>ENDIF
>
>
>Any ideas what I am doing wrong?

That is because this is a Collection not Array
IF _SCREEN.FormCount > 0

  LOCAL TCUR_FORM

  FOR m.TCUR_FORM = _SCREEN.FormCount TO 1 STEP -1

     && some code here

  NEXT

ENDIF
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform