Public Member Functions | |
| HRESULT | Clear (void) |
| HRESULT | SetSize ([in] RtUlong ulSize) |
| HRESULT | GetSize ([out, retval] RtUlong *pulSize) |
| HRESULT | SetStringAt ([in] RtUlong ulIndex,[in] BSTR bsStr) |
| HRESULT | GetStringAt ([in] RtUlong ulIndex,[out, retval] BSTR *pbsStr) |
| HRESULT | SetSelectedString ([in] BSTR bsStr) |
| HRESULT | GetSelectedString ([out, retval] BSTR *pbsStr) |
| HRESULT | SetComboCtrlStyle ([in] RtDWORD dwStyle) |
| HRESULT | GetComboCtrlStyle ([out, retval] RtDWORD *pdwStyle) |
| HRESULT | Clear (void) |
| HRESULT | SetSize ([in] RtUlong ulSize) |
| HRESULT | GetSize ([out, retval] RtUlong *pulSize) |
| HRESULT | SetStringAt ([in] RtUlong ulIndex,[in] BSTR bsStr) |
| HRESULT | GetStringAt ([in] RtUlong ulIndex,[out, retval] BSTR *pbsStr) |
| HRESULT | SetSelectedString ([in] BSTR bsStr) |
| HRESULT | GetSelectedString ([out, retval] BSTR *pbsStr) |
| HRESULT | SetComboCtrlStyle ([in] RtDWORD dwStyle) |
| HRESULT | GetComboCtrlStyle ([out, retval] RtDWORD *pdwStyle) |
| HRESULT IRdStrEnum::Clear | ( | void | ) |
Clear (initialize) the data object.
var myStringEnumArray = System.CreateDO('Common Data Package/String Enum Data');
myStringEnumArray.Clear();
| HRESULT IRdStrEnum::SetSize | ( | [in] RtUlong | ulSize | ) |
Sets size (number of items) that the data object can store
| ulSize | [in] Desired size of array. |
myStringEnumArray.SetSize(10);
| HRESULT IRdStrEnum::GetSize | ( | [out, retval] RtUlong * | pulSize | ) |
Gets size (number of items) that the data object is storing.
var sizeIs = myStringEnumArray.GetSize();
System.Alert(sizeIs);
| HRESULT IRdStrEnum::SetStringAt | ( | [in] RtUlong | ulIndex, | |
| [in] BSTR | bsStr | |||
| ) |
Sets one string item to the collection
| ulIndex | [in] Zero based index of new item (0..GetSize-1). | |
| bsStr | [in] String item to be set. |
myStringEnumArray.SetStringAt(5, "An array-a-day keeps the nerds at bay");
| HRESULT IRdStrEnum::GetStringAt | ( | [in] RtUlong | ulIndex, | |
| [out, retval] BSTR * | pbsStr | |||
| ) |
Gets one string item from the collection.
| ulIndex | [in] Zero based index of the item (0..GetSize-1). |
var stringIs = myStringEnumArray.GetStringAt(5);
System.Alert(stringIs);
| HRESULT IRdStrEnum::SetSelectedString | ( | [in] BSTR | bsStr | ) |
Sets the default string (default value of combo box control)
| bsStr | [in] Default value (should be one of the collection items). |
var stringIs = myStringEnumArray.GetStringAt(5);
myStringEnumArray.SetSelectedString(stringIs);
| HRESULT IRdStrEnum::GetSelectedString | ( | [out, retval] BSTR * | pbsStr | ) |
Gets the default string (default value of combo box control).
var defaultString = myStringEnumArray.GetSelectedString();
System.Alert(defaultString);
| HRESULT IRdStrEnum::SetComboCtrlStyle | ( | [in] RtDWORD | dwStyle | ) |
Sets style for combo box control.
| dwStyle | [in] Style constant - use one of the MS WIN style constants: |
myStringEnumArray.SetComboCtrlStyle(1);
| HRESULT IRdStrEnum::GetComboCtrlStyle | ( | [out, retval] RtDWORD * | pdwStyle | ) |
Gets style for combo box control.
var styleIs = myStringEnumArray.GetComboCtrlStyle();
System.Alert(styleIs);
| HRESULT IRdStrEnum::Clear | ( | void | ) |
Clear (initialize) the data object.
var myStringEnumArray = System.CreateDO('Common Data Package/String Enum Data');
myStringEnumArray.Clear();
| HRESULT IRdStrEnum::SetSize | ( | [in] RtUlong | ulSize | ) |
Sets size (number of items) that the data object can store
| ulSize | [in] Desired size of array. |
myStringEnumArray.SetSize(10);
| HRESULT IRdStrEnum::GetSize | ( | [out, retval] RtUlong * | pulSize | ) |
Gets size (number of items) that the data object is storing.
var sizeIs = myStringEnumArray.GetSize();
System.Alert(sizeIs);
| HRESULT IRdStrEnum::SetStringAt | ( | [in] RtUlong | ulIndex, | |
| [in] BSTR | bsStr | |||
| ) |
Sets one string item to the collection
| ulIndex | [in] Zero based index of new item (0..GetSize-1). | |
| bsStr | [in] String item to be set. |
myStringEnumArray.SetStringAt(5, "An array-a-day keeps the nerds at bay");
| HRESULT IRdStrEnum::GetStringAt | ( | [in] RtUlong | ulIndex, | |
| [out, retval] BSTR * | pbsStr | |||
| ) |
Gets one string item from the collection.
| ulIndex | [in] Zero based index of the item (0..GetSize-1). |
var stringIs = myStringEnumArray.GetStringAt(5);
System.Alert(stringIs);
| HRESULT IRdStrEnum::SetSelectedString | ( | [in] BSTR | bsStr | ) |
Sets the default string (default value of combo box control)
| bsStr | [in] Default value (should be one of the collection items). |
var stringIs = myStringEnumArray.GetStringAt(5);
myStringEnumArray.SetSelectedString(stringIs);
| HRESULT IRdStrEnum::GetSelectedString | ( | [out, retval] BSTR * | pbsStr | ) |
Gets the default string (default value of combo box control).
var defaultString = myStringEnumArray.GetSelectedString();
System.Alert(defaultString);
| HRESULT IRdStrEnum::SetComboCtrlStyle | ( | [in] RtDWORD | dwStyle | ) |
Sets style for combo box control.
| dwStyle | [in] Style constant - use one of the MS WIN style constants: |
myStringEnumArray.SetComboCtrlStyle(1);
| HRESULT IRdStrEnum::GetComboCtrlStyle | ( | [out, retval] RtDWORD * | pdwStyle | ) |
Gets style for combo box control.
var styleIs = myStringEnumArray.GetComboCtrlStyle();
System.Alert(styleIs);
1.5.5