Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen forms
Message
De
20/06/2011 04:31:49
 
 
À
20/06/2011 04:12:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01515135
Message ID:
01515137
Vues:
56
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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform