The Press method |
Top Previous Next |
The Press method sends an Attention Identifier Key along with the modified fields. Modified fields can be input fields (unprotected) or sometimes protected fields having the property Modified set to True.
VB tnxxxx.Press (aidKey as AidKey) tnxxxx.Press (aidKey As String)
Delphi tnxxxx.Press (aidKey : AidKey); tnxxxx.Press (aidKey : String);
The following graphic shows the sequence of actions corresponding to the asynchronous Press method:
Examples:
VB: Private Sub cmdLogin_Click() ' this code sets userId in Field located at Row 10 Column 2 telnet.EditFields["R10C2"].Data = "puser" ' this code sets the password in Field located at Row 12 Column 2 telnet.EditFields["R12C2"].Data = "k2156" ' this code sends the ENTER Attention Identifier Key along with all modified EditFields telnet.Press("Enter") End Sub
Delphi: procedure TForm1.LoginClick(Sender:TObject); begin // this code sets userId in Field located at Row 10 Column 2 tnb3270.EditFields['R10C2'].Data := 'puser'; // this code sets the password in Field located at Row 12 Column 2 tnb3270.EditFields['R12C2'].Data := 'k2156'; // this code sends the ENTER Attention Identifier Key along with all modified EditFields tnb3270.Press('Enter'); end;
|