Command Method

Calls an Remote Program Call (RPC) routine defined on a remote server.

object.Command(Command)

Client support

   Newlook Smartclient

   Newlook Server

Parameters

Command-  (String, Required)

Specifies the command to be passed to the remote server for execution.

Note

The results of the command are made available through the Response property of the RPC Connection object.

Example

The following examples show an RPC Command being performed after an initial RPC Connect Method.

VBSCRIPT
 

App.RpcConnect "SampleConnect", "Network Address=192.168.1.1;Network Port=8475;Use Encryption for Data=False;User ID=test;Password=test;Host CCSID=37;NLV=2924"

SampleConnect.Command "SNDMSG MSG('HELLO WORLD') TOUSR(TESTUSR)"

SampleConnect.Disconnect

 

JSCRIPT
 

App.RpcConnect ("SampleConnect", "Network Address=192.168.1.1;Network Port=8475;Use Encryption for Data=False;User ID=test;Password=test;Host CCSID=37;NLV=2924");

SampleConnect.Command ("SNDMSG MSG('HELLO WORLD') TOUSR(TESTUSR)");

SampleConnect.Disconnect;

Applies To

RPC Connection object

See Also

RPCConnect Method | Disconnect Method


© 2004-2021 looksoftware. All rights reserved.