Checks if a field is present in the current screen or subfile.
Syntax
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#bFound := #myscreen_wrapper.Check_Field_Exists(sName iInd)
Parameters
Name | Char 256 – Required | Integer that specifies the row number where to position the cursor. |
|---|---|---|
Index | Integer – Optional | An Integer that specifies the subfile row of the field. Note: the specified row index must exist in the current subfile page. |
Return Value
Found | Boolean | true – the field was found in the current screen. false – the field was not found. |
|---|
Examples
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#FldFound := #myscreen_wrapper.Check_Field_Exists("SURNAME")
#FldFound := #myscreen_wrapper.Check_Field_Exists("SURNAME" #listcount)
Dowhile (#myscreen_wrapper.check_field_exists( "SKILLCODE" #listcount ))
#myscreen_wrapper.getvalue From("skillcode") Value(#skilcode) Index(#listcount)
#listcount += 1
Endwhile