General information
Category:
Coding, syntax & commands
Title:
Copy to array: only 1?
I have a code table that has Type_Code and Code fields.
I am trying to copy to an array all the Type_Code = to "PE" and I don't know why but it only copies the first record to the array. Here is my code:
use codes
set order to Type_Code
count for Type_Code = "PE" TO ctn
DIMENSION aCode(ctn)
COPY TO ARRAY aCode FIELDS Code FOR Type_Code = "PE"
DISPLAY MEMORY LIKE Ape
Thanks for your help
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only