9.8 LanBoards Collection

Represents the collection of network boards on the server.

9.8.1 Element method

Finds a LanBoard object in the collection.

Syntax

object.Element( 
   BoardNumber As Integer)

Parameters

BoardNumber

The LanBoard number of the object to find.

Return Values

LanBoard.

Example

This example returns the specified object in the collection.

’Find the first LAN board and print its information 
set srv = createobject ("ucx:Server") 
set boards = srv.lanboards 
set board = boards.element(1) 
print "Full Name:" &board.FullName 

9.8.2 HasMoreElements method

Determines whether or not any more LanBoard objects exist in the collection.

Syntax

object.HasMoreElements()

Parameters

None.

Return Values

Boolean. Returns TRUE if more LanBoard objects exist in the collection; otherwise, FALSE.

Example

This example determines whether or not any more LanBoard objects exist in the collection.

’Reset the collection and list all the LAN boards 
set srv = createobject ("ucx:Server") 
set boards = srv.lanboards 
boards.reset() 
print "Lanboards available on this server:" 
while (boards.hasmoreelements()) 
     set Boards = boards.next() 
     Print (board.shortName) 
wend

9.8.3 Next method

Returns the next LanBoard object in the collection.

Syntax

object.Next()

Parameters

None.

Return Values

LanBoard. Returns NULL if the collection has no more elements.

Example

This example returns the next LanBoard object in the collection.

’Reset the collection and list all the LAN boards 
set srv = createobject ("ucx:Server") 
set boards = srv.lanboards 
boards.reset() 
print "Lanboards available on this server:" 
while (boards.hasmoreelements()) 
     set Boards = boards.next() 
     Print (board.shortName) 
wend

9.8.4 Reset method

Resets the LanBoards collection and starts an iteration.

Syntax

object.Reset()

Parameters

None.

Return Values

Void.

Example

This example resets the collection and starts an iteration.

’Reset the collection and list all the LAN boards 
set srv = createobject ("ucx:Server") 
set boards = srv.lanboards 
boards.reset() 
print "Lanboards available on this server:" 
while (boards.hasmoreelements()) 
     set Boards = boards.next() 
     Print (board.shortName) 
wend