Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Screen forms
Message
From
20/06/2011 04:31:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01515135
Message ID:
01515137
Views:
55
Thanks, that was it!


>>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
>
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform