Get the value from a field on a screen or in subfile.
Syntax
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.getvalue From(sField) Value(sValue)
Parameters
From | Char 256 – Required | String that contains the name of the field to get the value from. |
|---|---|---|
DefaultValue | Char 256 – Optional | String that contains the default value to return when the field is not found. |
Index | Integer - Optional | An Integer that specifies the subfile row of the field. |
Return Value
Value | Variant – Required | Returns the field value as a string or number. |
|---|
Examples
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.getvalue From(SURNAME) Value(#surname.value)
#myscreen_wrapper.getvalue From(SURNAME) Value(#surname.value) Index(5) DefaultValue(*Blanks)