GetValue

This function will get the current value of a field in the current recordset or the value of a specific prompt.

Group: Application-Based Extension


Syntax: vValue = App.GetValue(vField, [vFormName])

vValue          (Variant) is the value extracted. (Note: this will always be a string value regardless of the actual field's data type.)

vField           (Variant) to extract the value from a prompt, or is the name of a field in the current recordset.

vFormName  (Variant) Optional – is the name of the application's recordset to extract data from. This is typically used to extract data from a calling application’s recordset.

Example:

App.GetValue(2) ' Gets value from prompt #2

App.GetValue("PartNo") ' Gets the value from "PartNo"

App.GetValue(2,"Cycle") ' Gets the value from the second prompt on the "Cycle" application

Version Supported:      RFgen 4.0, 4.1, 5.0, 5.1, 5.2 and newer.