Default data type settings for new items.

Usage

Set_Property(OLECtrlEntID, "OLE.DefType", Array)

Values

Array has the following structure:

PosNameTypeDescriptionDefault
<1>TypeOptionThe new item's data typeText
<2>FormatFormatted StringThe 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")

See Also

ItemTypeDefSort

  • No labels