Description

Sets or retrieves the Drop Down list used within an edit table's COLUMN, a ROW, or a particular CELL.

Applies to

Edit table

Syntax

text = Send_Message( controlID, "COLDROPDOWNLIST", column, dropdownlist )

Parameters

For COLDROPDOWNLIST, the Send_Message function has the following parameters.

ParameterDescription
columnThe column number to which Drop Down list should be applied.
dropdownlistAn @vm delimited list of values

Remarks

Introduced in OpenInsight 9.0.

The Styles that can be set are outlined in the Edit Table Column Styles topic of the Programmer's Reference.

See also

Edit Table Column StylesCOLSTYLE messageDROPDOWNLIST_BY_POS messageSTYLE_BY_POS message

Examples

******************************************************************
// Flag the first column In an edit table as a drop down column.
// The drop down will allow for the entering of data not in the
// drop down list.
posStyle = Send_Message(EditTable, "STYLE_BY_POS", 1, 0)
posStyle = bitor(posStyle, DTCS_DROPDOWNEDIT$)
posStyle = Send_Message(EditTable, "STYLE_BY_POS", 1, 0, posStyle)
 
// Establish the list of values in the drop down.
dropdownItems = "Gold" : @vm : "Silver" : @vm : "Bronze"
 
// Populate the Drop Down values In the column
dropDownList = Send_Message(EditTable, "COLDROPDOWNLIST", 1,  dropdownItems)
  • No labels