9.15 ParamObjects Collection

Represents the collection of ParamObject objects, and returns information about the collection, such as:

9.15.1 HasMoreElements method

Determines whether or not the collection contains more ParamObject objects.

Syntax

object.HasMoreElements()

Parameters

None.

Return Values

Boolean. Returns TRUE if the collection contains more objects; otherwise, FALSE.

Example

This example determines whether or not the collection contains more ParamObject objects.

set srv = createobject ("ucx:Server") 
set srvparams = srv.Params 
set paramObjs = Srvparams.GetObjects(1) 
paramObjs.Reset 
while (paramObjs.HasMoreElements) 
     set paramObj = paramObjs.Next 
     Print("Name is :" & paramObj.Name & " Value is " & paramObj.Value) 
wend

9.15.2 Next method

Returns the next ParamObject object in the collection.

Syntax

object.Next()

Parameters

None.

Return Values

ParamObject

Example

This example returns the next ParamObject object in the collection.

set srv = createobject ("ucx:Server") 
set srvparams = srv.Params 
set paramObjs = Srvparams.GetObjects(1) 
paramObjs.Reset 
while (paramObjs.HasMoreElements) 
     set paramObj = paramObjs.Next 
     Print("Name is :" & paramObj.Name & " Value is " & paramObj.Value) 
wend

9.15.3 Reset method

Resets the collection.

Syntax

object.Reset()

Parameters

None.

Return Values

Void.

Example

This example resets the collection.

set srv = createobject ("ucx:Server") 
set srvparams = srv.Params 
set paramObjs = srvparams.GetObjects(1) 
paramObjs.Reset 
while (paramObjs.HasMoreElements=TRUE) 
     set paramObj=paramObjs.Next 
     print ("Name is " & paramObj.Name & " Value is " & paramObj.Value) 
wend