mappedGet Method
Get the value of a map field.
String HostScreen.mappedGet(String fieldName); String HostScreen.mappedGet(int fieldIndex); |
Arguments
HostScreen
Required. HostScreen object.
nameOrIndex
Required. The name or index of the map field of the active map to retrieve. The name of a map field is case sensitive.
Remarks
Use this method to retrieve the value of a map field. Fields can be accessed by name, or by the index order in which they appear in the map.
The following c# example demonstrates the use of the mappedGet and mappedSet methods:
void StartAndSetUser(string userName)
{
HostConnection oConn = new HostConnection();
oConn.hostName = "Insure";
oConn.connect();
HostScreen oScreen=oConn.getScreen();
string screenUserName=oScreen.mappedGet("username");
if (screenUserName=="")
{
oScreen.mappedSet("username",userName);
}
oScreen.putCommand("[enter]");
oConn.disconnect("reserve");
}
Requirements
Flynet Viewer
See Also
load | mappedSet | mappedRowGet | mappedRowSet | activeMapName
Applies To: HostScreen object
© 2016 Inventu Corporation, Flynet LTD