Gets a result variable for the last call of RemoteRtvCommand call.
Class EasycomConnection
Syntax
public String RemoteRtvCommandGetValue(strVariable: String)
Description
EasycomConnection.RemoteRtvCommandGetValue gets a result variable for the last call of RemoteRtvCommand.
A program should always get the "RC" variable before getting other variable(s).
Example of use (C#):
EasycomConnection my_cnx = new EasycomConnection();
my_cnx.ConnectionString = "Server=194.206.160.111;User Id=";
my_cnx.Open();
my_cnx.RemoteRtvCommand("LIBL=CHAR(2750);DFTWAIT=DEC(7 0);RTVJOBA USRLIBL(&LIBL)");
if( my_cnx.RemoteRtvCommandGetValue("RC") == "0")
{
MessageBox.Show("User Library List: " + my_cnx.RemoteRtvCommandGetValue("LIBL"));
MessageBox.Show("User Default Wait: " + my_cnx.RemoteRtvCommandGetValue("DFTWAIT"));
}
else
{
MessageBox.Show("The command call returned the following message" + my_cnx.RemoteRtvCommandGetValue("RC"));
}
The return type is always string, it does not depend on the datatype of the host variable. However, if the datatype of the return variable is decimal, it must be declared in the RemoteRtvCommand string.
See EasycomConnection.RemoteRtvCommand for more details.