This function enables you to switch options to:
The default values are reinstated when the session is closed.
This function will be extended to support more options as they are required.
BOOL |
LceSetSessionOption |
(int |
iSession, |
|
|
int |
iOption, |
|
|
char far * |
strValue) |
Parameters
iSession |
The session identifier. |
iOption |
The option to be set. Available options are listed in the Notes. |
strValue |
The value of the option. Refer to the Notes for the available values. |
Return Values
TRUE is returned if the option was set successfully.
FALSE is returned if an invalid option or value was specified.
Notes
The default values required for these options should be set in the Windows System Registry. If these defaults are not set, LANSA Open sets those described with each option.
Refer to Configuration File in the PC Configuration File section of this guide for further information about setting the default values.
LCE_OPT_NUMERIC_DATA
This option can be set and reset at any time during a session.
LANSA Open's default: Numeric values will be returned stripped of all leading zeros and only containing a leading sign if negative.
LCE_OPT_ALPHA_DATA
This option can be set and reset at any time during a session.
LANSA Open's default: Alpha values are returned stripped of all trailing spaces.
LCE_OPT_EDIT_DATA
This option can be set and reset at any time during a session.
This option allows you to specify the way in which data is returned to you by LceGetFieldValueX.
LANSA Open's default: Data returned is not reformatted, regardless of the field's Edit Code.
LCE_OPT_OPEN_FILE_ON_DEMAND
This option must be specified before the session is opened
LANSA Open's default: All the files are opened at the beginning of a session, to ensure that all the I/O modules exist.