IDL_RPCSetVariable

Calling Sequence

int IDL_RPCSetVariable( CLIENT *pClient,  char *Name, 
    IDL_VPTR pVar) 

Description

Use this routine to assign a value to an IDL variable in the IDL RPC server session referred to by pClient. If the variable does not already exist, a new variable will be created. Unlike IDL_RPCSetMainVariable(), this routine sets the variable in the current IDL program scope.

Parameters

pClient

A pointer to the CLIENT structure that corresponds to the desired IDL session.

Name

A pointer to the null-terminated name of the variable, which must be in upper-case.

pVar

A pointer to an IDL_VARIABLE structure that contains the value that the IDL RPC variable referenced by Name should be set to. For more information on creating this variable, see Client Variables.

Return Value

This function returns 1 on success, or 0 on failure.