MTblSetRowUserData
bOk = MTblSetRowUserData( hWndTbl, nRow, sKey, sValue)
Sets row user data.
Parameters
hWndTbl
Window Handle: Handle of the table
nRow
Number: Row number
sKey
String: Data key
sValue
String: Data value
Return
Boolean: TRUE if successful or FALSE if not
Example
In this example row user data is used to define specific list values for a drop down list column in a row:
Set n = 1
Set nValues = 5
While n <= nValues
Set sn = SalNumberToStrX( n, 0 )
Call MTblSetRowUserData( hWndTbl, nRow, 'LISTVAL' || sn , 'Value ' || sn )
Set n = n + 1
...
Column: colList
On SAM_DropDown
Set nRow = SalTblQueryContext( hWndForm )
Call SalListClear( hWndItem )
Set n = 1
Loop
Set sn = SalNumberToStrX( n, 0 )
Set sValue = MTblGetRowUserData( hWndForm, nRow, 'LISTVAL' || sn )
If NOT sValue
Break
Call SalListAdd( hWndItem, sValue )
Set n = n + 1
Remarks
If data with the specified key already exists, the data value is updated, otherwise new data is added.
See also
Row User Data
Created with the Personal Edition of HelpNDoc: Free iPhone documentation generator