GetDataField
GetDataField(BYREF nSourceSym, BYREF nFieldSym, BYREF nOccurs)
Returns the SYM of the data source, datafiled and occurs value
BYREF nSourceSym | Integer | Returns the SYM of the data source string |
---|---|---|
BYREF nFieldSym | Integer | Returns the SYM of the data field |
BYREF nOccurs | Integer | Returns the number of occurs (or 1) |
Applies to: Generic , Grid , GridCell
Introduced in KCML version 6.00
This method can be used to retrieve the data aware information for any control or grid cell. If the information is retrieved successfully then the result is TRUE. If the control is not data aware (or the control does not support data awareness) then the result is FALSE.
If the function succeeds, then it returns in the 3 BYREF parameters the SYM of the data source string (as set by DataSource , the SYM of the data field (as set by DataField) and the value of the occurs (if there is no explicit occurs the value is 1).
IF (.control.GetDataField(BYREF strsym, BYREF fieldsym, BYREF occurs) REM Validate this control ... ENDIF