Skip to main content

Get-Set-Size

Command Description

Get the number of elements in a set

Command Prototype

iRet = Set.Count(objSet)

Parameter Description

ParameterRequiredTypeDefaultDescription
objSetTrueexpressionobjSetThe object returned by the "Create Set" command is a collection of non-repetitive elements of no order

return

iRet,The variable used to save the output of the command.

Demo

Dim iRet 
Dim ObjSet
ObjSet=Set.Create()
iRet = Set.Count(ObjSet)
TracePrint(iRet)
/**
iRet 0
*/