CHECK_FIELD_EXISTS Function
Checks whether a field is present in the current screen. Use the optional iInd parameter to refer to the instance of a field in a subfile.
Syntax
CHECK_FIELD_EXISTS(sFieldName, [iInd])
Parameters
|
Return Value
Boolean. Returns one of the following possible values:
|
Remarks
For subfile fields you may choose not to pass iInd. When passed, iInd must be greater than zero or else it will return false.
Example
Check that that the field named PageMarker is present on this screen:
if (CHECK_FIELD_EXISTS("PageMarker"))
Read every subfile entry on the page
for ( Index = 1; CHECK_FIELD_EXISTS("ColGivename", Index); Index++ )
{
var Givename = GETVALUE("ColGivename",Index);
var Empno = GETVALUE("ColEmpno", Index);
...
}