GetValueメソッド

LANSA RAMP-TS

GetValueメソッド


画面またはサブファイルのフィールドから値を取得します。

構文

Define_Com Class(#vf_sy122) Name(#myscreen_wrapper) Parent(#COM_OWNER)

#myscreen_wrapper.getvalue From(sField) Value(sValue)

パラメータ

From

Char 256 - 必須

値を取得するフィールドの名前を含む文字列。

DefaultValue

Char 256 -任意

フィールドが見つからなかった場合に返すデフォルト値を含む文字列。

Index

Integer - 任意

フィールドのサブファイル行を指定する整数。

注:指定した行インデックスが現在のサブファイル・ページに存在する必要があります。

 

戻り値

Value

Variant -必須

文字列または数値としてフィールドの値を返します。

使用例

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)