Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Screen forms
Message
 
À
20/06/2011 03:15:58
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:
01515136
Vues:
123
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform