Page 1 of 1

Determine StatementIndex within OnError in UniScript

Posted: Tue 14 Nov 2017 17:34
by zvasku
Hello,

is it possible to determine StatementIndex within OnError in UniScript?

Thanks
Zdenek

Re: Determine StatementIndex within OnError in UniScript

Posted: Tue 20 Feb 2018 12:23
by MaximG
When using the OnError handler, you cannot determine the sequence number of the executed SQL query. However, it is not hard to determine such a number by yourself, for example, by counting the number of executed queries in the BeforExecute event handler that occurs before executing the current SQL statement.