IiopGetLong Function

Action

Retrieves a long value return parameter from a CORBA object. This function can be used to get the return parameters of an operation.

Include file

IIOP.bdh

Syntax

IiopGetLong( in  hIiop  : number,
             out nValue : number optional ):number;

Return value

Long value associated with the CORBA object

Parameter Description
hIiop Handle to a CORBA object
nValue Variable receiving the long value associated with the CORBA object (optional)

Example

dcltrans
  transaction TGetLong
  const
    HOST   := "192.168.20.21"; // server
    PORT   := 1052; // port
    KEY    := "...\h00"; // key
    KEYLEN := 4; // key length
  var
    hIiop    : number; // Handle to CORBA object
    nProduct : number;
  begin
    IiopSetMaxGiopVersion("1.2");
    IiopSetByteOrder(IIOP_BIG_ENDIAN);
    
    // retrieve handle to server
    IiopObjectCreate(hIiop, "IDL:DemoObject:1.0", "1.2",
                     HOST, PORT, KEY, KEYLEN);

    // call request "Product" with two long value parameters
    IiopSetLong(hIiop, 2854);    IiopSetLong(hIiop, 489);
    IiopRequest(hIiop, "Product");

    // retrieve long value return parameter
    nProduct := IiopGetLong(hIiop);
    write("product = "); write(nProduct); writeln;
    IiopObjectRelease(hIiop);
  end TGetLong;

Output

product = 1395606

Sample scripts

UnivB.bdf, TypeTest.bdf, AsyncFact.bdf, Conf.bdf, Factory.bdf

You can find the sample script(s) here: <Public documents>\Silk Performer <version>\Samples\Corba