Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Loopin a variable length array
Message
De
21/02/1999 20:31:08
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00189697
Message ID:
00189838
Vues:
7
>James,
>
>lnControls = ALEN(Thisform,.array,1)
>FOR lnCnt = 1 TO lnControls
> * Do the recalc.
> lnControls = ALEN(Thisform.Array,1)
>ENDFOR

Hi, Jim,

Will this work? I tried a couple of variations on this theme and what happens is that while the value of lnControls will change, the number of iterations performed by the FOR/ENDFOR loop does not.

Once the number of loops to be processed has been set in the FOR... clause, the number does not appear to be changeable while the loop is processing.

Oh, well. Stuck with DO/WHILE. I guess I can live with 1.

All regards,
Jim Edgar
Jurix Data Corporation
jmedgar@yahoo.com

No trees were destroyed in sending this message. However, a large number of electrons were diverted from their ordinary activities and terribly inconvenienced.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform