Page 1 of 1

UniScript and RowsAffected

Posted: Thu 16 Feb 2012 08:59
by Eurocg
Hello
is here any way to get the 'RowsAffected' for update and delete statement, if i use UniScript?

Thx
Christian

Posted: Thu 16 Feb 2012 10:45
by AlexP
Hello,

The RowsAffected property is not supported by TUniScript, however, you can retrieve the rows affected number by attaching any DataSet (for example, TUniQuery) to TUniScript and summing up the RowsAffected property value in the AfterExecute event of the DataSet after each operation. When attaching DataSet, the operators specified in UniScript are executed with the help of this DataSet.