ComboData - cCJGridColumn
Returns the set of combo items in the combo list for this column
Type: Function
Return Data Type: tComboItemData[]
Syntax
Function ComboData Returns tComboItemData[]
Call Example
Get ComboData to tComboItemData[]Variable
Description
The ComboData function returns an array of type tComboItemData containing the set of combo list name\value pairs.
Sample
In this example, calling ShowComboData would display the following strings (Int, Char, DateTime, Number, Binary, Overlap, Text).
Object oType is a cCJGridColumn
Set psCaption to "Type"
Set piWidth to 59
Set pbComboButton to True
Set pbComboEntryState to False
Send ComboAddItem "Int" 0
Send ComboAddItem "Char" 2
Send ComboAddItem "DateTime" 3
Send ComboAddItem "Number" 4
Send ComboAddItem "Binary" 5
Send ComboAddItem "Overlap" 6
Send ComboAddItem "Text" 7
Procedure ShowComboData
tComboItemData[] ItemData
Integer i iCount
Get ComboData to ItemData
Move (SizeOfArray(ItemData)) to iCount
For i from 0 to (iCount-1)
Show ItemData.sCaption
Loop
End_Procedure
End_Object
To enable combo lists for the column cells, you must set the column's pbComboButton property to True.
To add members to the combo list, send ComboAddItem.
To delete all members in the combo list, send ComboDeleteData.
See Also
pbComboEntryState | pbShowNonActiveInPlaceButton
Return Value
Array containing the set of combo list name\value pairs.