General information
Category:
Coding, syntax & commands
>Then, how i Return an Array from a function?
Call a function with extra ARRAY parameter. This function return the number of element in your extra ARRAY parameter
Example:
*- Declare
procedure xyz (InArray, ResultArray)
...
IF lnResultCount > 0
DEClARE ResultArray[lnResultCount]
ENDIF
Return lnResultCount
*- Call
LOCAL laVal[3], laRes[1]
lnCount = XYZ (@laVal, @laRes)
FOR I = 1 TO lnCount
? laRes[lnCount]
NEXT
Previous
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