IiopGetFloat Function

Action

Retrieves a float 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

IiopGetFloat( in  hIiop  : number,
              out fValue : float optional ): float;

Return value

float value associated with the CORBA object

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

Example

dcltrans
  transaction TGetFloat
  const
    HOST   := "192.168.20.21"; // server
    PORT   := 1052; // port
    KEY    := "...\h00"; // key
    KEYLEN := 4; // key length
  var
    hIiop : number; // Handle to CORBA object
    fSqr  : float;
  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 "Square" with float value parameter
    IiopSetFloat(hIiop, 934.71);
    IiopRequest(hIiop, "Square");
     
    // retrieve float value return parameter
    fSqr := IiopGetFloat(hIiop);
    write("square = "); write(fSqr); writeln;
    IiopObjectRelease(hIiop);
  end TGetFloat;

Output

square = 873682.784100

Sample scripts

AsyncBank.bdf, Bank.bdf, SimpleAsyncBank.bdf, TypeTest.bdf, Conf.bdf, Vbrokerbank01.bdf, Vbrokerbank02.bdf, VBrokerBankGate.bdf

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