[TOC] [Prev] [Next] [Bottom]

<@NUMAFFECTED>

Description

Returns the number of database rows affected by the last Insert, Update, Delete, or Direct DBMS action executed. All other actions have no effect on what the tag returns. The value returned by the tag is always the number of rows affected by the last Insert, Update, Delete, or Direct DBMS action executed. This tag only works for Oracle and ODBC data source types. The tag has no attributes.

At the start of execution, and until an Insert, Update, Delete, or Direct DBMS action is executed, the tag returns "-1".


! Note:


Example

An Update action in your application file updates a product code. In the Results HTML for that Update action, you could use <@NUMAFFECTED> to return to the user the number of records changed:

<P><STRONG><@NUMAFFECTED></STRONG> records were updated in the database.</P>



[TOC] [Prev] [Next] [Bottom]

docs@pervasive.com
Copyright © 1999, Pervasive Software. All rights reserved.