bOk = MTblQueryDropDownListContext( hWndCol, nrRow )

Queries a column's current drop down list context.

Window Handle: Handle of the column.

Receive Number: Number of the row, TBL_Error when the drop down list context is on the column.

Boolean: TRUE if successful or FALSE if an error occured or the current drop down list context is invalid

In this example we check if the drop down list context is on the expected row. If not, the context is set:
Set nRowCurrent = TBL_Error
Set nRowExpected = 5
If NOT ( MTblQueryDropDownListContext( hWndCol, nRowCurrent ) AND nRowCurrent = nRowExpected )
  Call MTblSetDropDownListContext( hWndCol, nRowExpected )

See also
Cell types

Created with the Personal Edition of HelpNDoc: Produce electronic books easily