Default data type settings for new items.
Usage
Set_Property(OLECtrlEntID, "OLE.DefType", Array)
Values
Array has the following structure:
Pos | Name | Type | Description | Default |
---|---|---|---|---|
<1> | Type | Option | The new item's data type | Text |
<2> | Format | Formatted String | The new item's output format | "" |
Remarks
The DefType property establishes the default data type and format of new items. Setting this property will not change existing items. Instead, newly added items will take on the setting established in this property. See the ItemType property for details.
For more information on how default properties can make you more efficient, see the Default Properties article.
Example
// Make all new items dates Set_Property(@Window:".OLE_TREE", "OLE.DefType", "Date":@FM:"MM/DD/YYYY")