PreviousDTO Programmer's Guide (9.1 revision 1) Next

DtoSelectionItem Object

Show this topic in Library frames

An object representing a possible value of a selection type setting.

Properties

ItemID
Returns the unique ID of a selection item .
Setting
Returns the setting to which this selection item applies.
String
Returns the value of a selection item.

Methods

None

Remarks

The AllPossibleSelections property of the DtoSetting Object returns the DtoSelectionItems collection.

Example
Set first_setting = my_settings.Item(1) 
Dim type as dtoSettingType 
type = first_setting.Type 
' only call this for selection type settings 
' see Setting Type enumeration 
' for a list of setting types 
if (type = dtoSingleSel) OR (type = dtoMultiSel) then 
Dim all_the_selections as DtoSelectionItems 
Dim selection as DtoSelectionitem 
Set all_the_selections = 
first_setting.AllPossibleSelections 
Dim String_text as String 
For each selection in all_the_selections 
  String_text = selection.String 
Next 

See Also

DtoSelectionItems Collection
DtoSetting Object


Chapter contents
Publication contents

Prev topic: DtoSelectionItems Collection
Next topic: DtoServices Object