Set the value of an input field on a 5250 screen. Pass an index to set the value of an input field in a subfile.
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
Setting by Name - #myscreen_wrapper.setvalue Infield(sFieldName) Value(vValue)
Setting by Name:
InField | Char 256 – Required | String that contains the name of an input field. | |
|---|---|---|---|
Value | Variant – Required | String or number that contains the value. | |
Index | Integer - Optional | An Integer that specifies the subfile row of the field.
|
None
Only Input fields that have been named can have their values set.
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
#myscreen_wrapper.setvalue Infield(GIVENAME) Value(#Givename)
* Set the value of a field in the 3rd row of the current subfile page
#myscreen_wrapper.setvalue Infield(SFL_OPTION) Value(#SelOption) Index(3)