XtenWEB.Devices
tenWare Home XtenWEB.CP290 XtenWEB.Device XtenWEB.Devices ActionStatus Codes Sample Code

Up

The XtenWEB.Devices class is a collection of one or more XtenWEB.Device objects.  This collection of Devices can be retrieved from or saved to a disk file (xtenweb.ini).  The following properties and methods are used to maintain the Devices collection:

Properties Description
Count A read-only integer that is equal to the number of Devices currently contained in the XtenWEB.Devices collection.
ActionStatus A read-only integer that contains the status of the last XtenWEB.Devices request.  A value of 0 indicates a successful result; any other value indicates an error.
ActionStatusText A read-only character string that describes the results of the last XtenWEB.Devices request.


Method Description
Clear Removes all Devices from the collection.
AddDevice N,Desc,House,Modules Adds a new Device to the collection.  Current devices within the collection are numbered from 1 to Devices.Count.  The new Device is added after the current Device specified by the first parameter, N.  To add a new Device at the beginning of the list, specify 0.  Desc, House, and Modules define the new Device to be added (see the description of the properties for XtenWEB.Device). 
ReplaceDevice N,Desc,House,Modules Replaces the current device N with the new Device.  Parameters are the same as for Devices.AddDevice.
RemoveDevice N Remove the current Device N from the collection.
GetDevice(N) Retrieves a Device specified by N from the collection.  The result returned is an XtenWEB.Device object.  Example:  set oDevice=oDevices.GetDevice(2)
RetrieveDevices Read the Device Definitions from the xtenweb.ini file into the XtenWEB.Devices collection.
SaveDevices Write the Device Definitions from the XtenWEB.Devices collection to the xtenweb.ini file.
 

E-mail tenWare Software