Thanks Brian,
Yes you are right...I have just discovered that the max number in an array is 1000 so really it's a no-goer anyway.
I was trying to come up with a solution to speed up a report linking two massive tables (90 million records in each approx). I thought perhaps to filter one separately and store the required results in an array, and then apply that array as a filter to the second table. It was just a thought but I then got embroiled in trying to get records into an array and it became a sort of challenge. The code I am using is as follows (I've put in a filter to stop adding records when the 1000 limit is reached).
However it doesn't work. The counter part seems to stay on 1.
//In the Header
Global Stringvar Array Codes := MakeArray (" ");
Global Numbervar Counter := 1;
""
//in the detail band
Global Numbervar Counter;
If Counter <= 999 Then
(Global Stringvar Array Codes;
(Codes[counter] := {Table.CODE};
Counter := Counter + 1;
Redim Preserve Codes [counter];
Codes[counter -1]))
//In the footer
Global Stringvar Array Codes;
Global Numbervar counter;
Join(Codes)
nothing shows....
Sorry for the amature code writing...I'm new at this.
Don't spend much time on this...as I say it's more of a challenge really.
Best regards Brian
Roger