GetValue Method

RAMP-TS

GetValue Method

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.

Note: the specified row index must exist in the current subfile page.

 

 

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)