wwUtils::CollectionToArray

Converts a collection to an array.

loCol = CREATEOBJECT("Collection")
FOR lnX =1 TO 100
   loCol.Add(TRANSFORM(lnX))
ENDFOR

DIMENSION laItems[1]
lnCount = CollectionToArray(@laItems, loCol)
? lnCount && 100
o.CollectionToArray(@laItems, loCollection)

Parameters

@laItems

loCollection


See also:

Class wwUtils | wwUtils::ArrayToCollection

© West Wind Technologies, 1996-2024 • Updated: 05/31/21
Comment or report problem with topic