Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Keeping an array sorted
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00434680
Message ID:
00434813
Views:
16
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
Previous
Reply
Map
View

Click here to load this message in the networking platform