SetValueメソッド
5250画面の入力フィールドの値を設定します。インデックスを渡して、サブファイルの入力フィールドの値を設定します。
構文
Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)
Setting by Name - #myscreen_wrapper.setvalue Infield(sFieldName) Value(vValue)
パラメータ
名前による設定:
InField | Char 256 - 必須 | 入力フィールドの名前を含む文字列。 |
Value | Variant -必須 | 値を含む文字列または数値。 |
Index | Integer - 任意 | フィールドのサブファイル行を指定する整数。 注:指定した行インデックスが現在のサブファイル・ページに存在する必要があります。 |
戻り値
なし
備考
値を設定できるのは、名前を付けられている入力フィールドのみです。
使用例
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)