SetValue

This command will set the value of a field in the current recordset or of a specific prompt.

Group: Application-Based Extension


Syntax: App.SetValue(vField, vValue, [vName])

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

vValue  (Variant) is the value to insert into the current recordset. (Note: all values are treated as strings until passed to the database.)

vName  (Variant) Optional – is the name of the application's recordset to update. This is typically used to insert data into a calling application’s recordset.

Example:

App.SetValue(1,"FX1") ' Puts "FX1" in prompt #1.

App.SetValue("PartNo","FX1","Cycle")


Puts "FX1" in "PartNo" prompt on "Cycle" application.

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