Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Keeping an array sorted
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00434680
Message ID:
00434813
Vues:
23
I'm begining to think we need a way to mark a thread as answered... It's not that I don't appreciate the help, because I do, I just hate wasting everyone's time when I'm already past the question I asked about.

But, you never know. I may need to do what I originally asked some day and will come back to these answers.

Thanks,

Michelle


>Try
LPARAMETERS tsubscript, tvalue, ta_array
>
>
>LOCAL lni, lnlast, lnvalue
>lnlast = ALEN(ta_array, 1)
>lnvalue = tvalue
>FOR lni = tsubscript TO lnlast
>  ta_array[lni] = lnvalue
>  lnvalue = lnvalue + 1
>NEXT
>IF tsubscript > 1
>  FOR lni = 1 TO tsubscript - 1
>    ta_array[lni] = lnvalue
>    lnvalue = lnvalue + 1
>  NEXT
>ENDIF
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform