Suggestion 1:
Cant the SQL tatement contain a filter condition to avoid loading the unwanted rows? I feel this can be the real solution.
Suggestion 2: (If SQL filtering cannot be done)
Just to remind that ADEL function will be slow because,
deleting an element, row, or column from an array doesn't change the size of the array; instead, the trailing elements, rows, or columns are moved towards the start of the array, and the last element, row, or column in the array is set to false (.F.). So, I suggest, do a ASCAN of the source array and copy only wanted rows into a working array which can be used in the list box.
Suggestion 3:
I remember that list box rows will be omitted if the first character is '\' or '/'. I have to verify this as I am writing off memory. So to use this effectively,
a. Make the array with one dimension more
b. Make the additional dimension to hold a character value and fill it up with '/' or '\' (whichever is applicable) herever the row is not wanted
c. if the list box value is set as comination of two array elements, one as built above+your row
This suggestion 3 is just off my vision and I cannot confirm, if it works... (worth a try for sure!)
Hope I am useful to you.
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com