I'm wondering which is the best/fastest way to load an array containing all records numbers in a dbf table indexed by a particular order
Obviously not this one ot this one because as written in my previous post it is very slow if opened by other users.
I don't know how cdx are structured but I imagine that there is an association key-record number
Many thanks
Marco
- Code: Select all Expand view
FUNCTION MAIN()
LOCAL aRecno := {}
SELECT 0
USE customers
SET INDEX TO customer
INDEX ON field->last TAG LAST TO customer
GO TOP
DO WHILE !EOF()
AADD( aRecno , RECNO())
ENDDO
RETURN NIL