In the following prog layout how can I resize arraysort.s in proc itemcollatesort?
Help file talks about resizing but gives no example/s.
THX
Dim arraysort.s(1) ; template array for itemcollatesort
; array can be between 1 and 10,000,000 elements
; arraysort.s(10000000) would take up 30M approx just for starters!
; resizing of arraysort.s done in itemcollatesort
Procedure.s Sortsomearray(x,y,z,a,b,c)
; routine to sort the array - easy
EndProcedure
Procedure.s itemcollatesort(filename$)
; work out # of lines in file - easy
; resize arraysort.s for # of element to match line # - BUT HOW???
; put lines into elements & sort via proc sortsomearray - easy
; return to Utilsort - easiest
EndProcedure
ProcedureDLL.s UtilSort(filename$)
; Do some initialisation - easy
; Determine sort required, go to proc itemcollatesort - easy
; put sorted elements of array into a temp file for caller - easy
EndProcedure