Article ID: 191923
Article Last Modified on 6/19/2002
SELECT * FROM mytest where name2 = "WY" INTO ARRAY myarray
DIMENSION myarray(30,10)
If the array is already defined, an error will not occur. If the
dimensions of the array do not match the data, the array will
not be re-dimensioned to match the data by the copy command and data
can be lost.
CREATE TABLE mytest (name1 c(10), name2 c(2), name3 c(5),;
name4 c(5), name5 c(5))
FOR i = 1 to 40
INSERT INTO mytest (name1, name2, name3, name4, name5);
VALUES (SYS(2015), "WA", "WORLD", "HELLO", "TEST" )
ENDFOR
FOR i = 1 to 20
INSERT INTO mytest (name1, name2, name3, name4, name5);
VALUES (SYS(2015), "WY", "WORLD", "SMITH", "TEST1")
ENDFOR
FOR i = 1 to 15000
INSERT INTO mytest (name1, name2, name3, name4, name5);
VALUES (SYS(2015), "MA", "WORLD", "SMITH", "TEST1")
ENDFOR
INDEX ON name2 TAG name2
SET ORDER TO name2
SEEK "WY"
IF FOUND()
WAIT WINDOW "RECORD FOUND" NOWAIT
COPY TO ARRAY myarray WHILE name2='WY'
ELSE
RETURN
ENDIF
Additional query words: kbXBase kbVFp600 kbVFp500a kbVFp500
Keywords: kbnofix kbprb kbcode KB191923