I still like the SELECT approach. It can be used on dynamic arrays and
doesn't even need to wait to finish to make elements available. I tried
using dynamic arrays one time and the speed was awful. Ever since, I use
SELECT lists whenever possible. A MAT array might be faster since it is
more like a "traditional" array, but SELECT is easy and fast.
Here is the first part of the UniBasic HELP.
*****************************************************
Help Information For: "UNIBASIC SELECT" Page: 1/7
SELECT
Syntax
SELECT file.var [TO {list.num.expr | list.var.expr}] [ON ERROR statements]
SELECT dyn.array [TO {list.num.expr | list.var.expr}] [ON ERROR
statements]
Description
The UniBasic SELECT command creates an active select list of all
record IDs in a file. Records appear in the list in the order in
which they are stored in the file.
You can access the select list with a READNEXT statement.
The UniBasic SELECT command differs from EXECUTE "SELECT ...", which
executes the UniQuery SELECT command. The UniBasic SELECT command
immediately makes available to READNEXT one group of IDs at a time.
The program does not have to wait for the entire ID list to be
constructed.
.
.
.***********************************************************************
Charles Shaffer
Senior Analyst
NTN-Bower Corporation
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/