Defines the attributes of and optionally sets the current value of a parameter. These parameters are for use by the Lce3GLCall function.
BOOL | Lce3GLDefineParameter | (int | iSession, |
int | iparam, | ||
int | isubParam, | ||
char far * | strDirection, | ||
char far * | strDataType, | ||
int | ilength, | ||
int | idecimal, | ||
char far * | strValue) |
Parameters
iSession | The session identifier as returned by LceGetSessionId. |
iparam | The first level number of the parameter to be set. The maximum number of first level parameters is 20. The base level starts at zero, so this parameter will be an integer in the range 0 to 19. |
isubParam | The number of the sub-parameter within this first level parameter. The maximum number of sub-parameters is 256, with the base number starting at zero. This parameter will be an integer in the range 0 to 255. |
strDirection | The direction/s in which the entire first level parameter block will be passed. Its value should be: |
strDataType | The data type of this sub-parameter and must be one of the following: |
iLength | The field length of this parameter. |
iDecimal | The number of decimal places of this parameter. |
strValue | The string equivalent of the value to be passed to the 3GL program when strDirection is "P" or "B". It is ignored if strDirection is "R". |
Return Values
TRUE is returned if the parameter can be set.
FALSE is returned if an error occurs.
Notes
Portability Considerations | Lce3GLDefineParameter is only supported if your host system is an IBM i. If you make a call to any other platform an error will be returned by the host. |
LANSA Open maintains a local parameter area which is used when passing parameters to and from the host using Lce3GLCall. On the IBM i, LANSA Open will call the 3GL program with pointers to each of the defined (and requested) blocks in the subsequent Lce3GLCall request.
Related Functions
6.3 Lce3GLCall
6.5 Lce3GLGetValue