Flynet Viewer .NET Programmer's Reference

mappedSet Method

mappedSet Method

Previous topic Next topic  

mappedSet Method

Previous topic Next topic  

 

Set the value of a map field.

 

.NET

void HostScreen.mappedSet(String fieldName, String value);

void HostScreen.mappedSet(int fieldIndex, String value);

COM

HostScreen.mappedSet(nameOrIndex, Value)

 

 

 

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.

 

Value

 Required. The value to set the map field to.

 

Remarks

 

Use the mappedSet method to set the value of the field in a map. 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 | mappedGet | mappedRowGet | mappedRowSet | activeMapName

 

Applies To: HostScreen object

 


© 2016 Inventu Corporation, Flynet LTD