rajitha
21st October 2016, 13:02
Hi Please find the attached error where if i "dont give the from date in selectionr ange ,print session is throwing such error.6234
bhushanchanda
21st October 2016, 13:07
Hi,
Please provide more details. Are you running a standard session or its a customized one?
rajitha
21st October 2016, 13:57
Hi,
I am running a customized session
bhushanchanda
21st October 2016, 14:06
Debug your code and find the specific code where the program is failing and throwing the error. Check the error logs to see if there are any clues. Without much information, its tough to help.
NPRao
21st October 2016, 18:15
Ranjita,
Post your code if you like others to help & resolve it than guessing your custom code from error messages.
Based on the error message from the screenshot which refers to - load.short() (http://www.baanboard.com/programmers_manual_baanerp_help_functions_string_operations_loadxxx)
From the latest programmers manual -
load.short()
Syntax: function long load.short (string record$ [, long endian])
Description
The function load.short() treats the supplied string merely as a sequence of bytes. The 2 bytes read from the string are interpreted as the 16-bit two’s complement representation of a signed integer value.
The load.short() function is machine independent and can be used (for example) in network communications.
Arguments
string record$ String value of which the first 2 bytes are used as input bit pattern.
[long endian] Optional argument indicating the byte order (big endian or little endian) to be used.
Value 1 indicates that little endian byte order must be used.
Any other value indicates that big endian byte order must be used.
Default behavior is to use big endian byte order.
Return values
The numerical value of the first 2 bytes of the supplied string. This is a value in the signed 16-bit range [-2^15 … 2^15 - 1] (i.e. [-32,768 … 32,767]).
Context
This function is implemented in the porting set and can be used in all script types.
Example
| Load a short from a string
string tmp(2)
long value
tmp = "S5"
value = load.short( tmp )
| The variable value contains now the value 21301
You might be exceeding the limits of the variable.