Posted: Fri Apr 11, 2003 2:26 am Post subject: Re: Subscript Error in ESQL in Compute Node
Apprentice
Joined: 13 May 2002 Posts: 49 Location: KLM Holland
satyasheel15 wrote:
I am getting the array subscript error in Compute Node. Please advise how to correct the same.
Please also advise do OutputRoot always create an output. Is there exists any way where I can use the OutputRoot without generating the Output.
The array subscript error indicates you are attempting to access an array outside it's range. If this happens while creating an array, then you are attempting to create a new element at array[X] while array[X-1] does not yet exist.
For example :
Code:
SET array[1] = 'Hello';
SET array[3] = 'World';
will generate an array subscript error when setting array[3] because array[2] does not exist.
To prevent OutputRoot from being send on at the end of a compute node, simply execute a
Code:
RETURN False;
at the end of the ESQL code.
This will stop message handling for the current message.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum