summaryrefslogtreecommitdiffstats
path: root/doc/html/sql-overview-update-main-cpp.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/sql-overview-update-main-cpp.html')
-rw-r--r--doc/html/sql-overview-update-main-cpp.html22
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/html/sql-overview-update-main-cpp.html b/doc/html/sql-overview-update-main-cpp.html
index 8ef5f43cb..c5bf67f0c 100644
--- a/doc/html/sql-overview-update-main-cpp.html
+++ b/doc/html/sql-overview-update-main-cpp.html
@@ -42,24 +42,24 @@ body { background: #ffffff; color: black; }
**
*****************************************************************************/
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qsqldatabase-h.html">qsqldatabase.h</a>&gt;
-#include &lt;<a href="qsqlcursor-h.html">qsqlcursor.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qsqldatabase-h.html">ntqsqldatabase.h</a>&gt;
+#include &lt;<a href="qsqlcursor-h.html">ntqsqlcursor.h</a>&gt;
#include "../connection.h"
int main( int argc, char *argv[] )
{
- <a href="qapplication.html">TQApplication</a> app( argc, argv, FALSE );
+ <a href="ntqapplication.html">TQApplication</a> app( argc, argv, FALSE );
if ( createConnections() ) {
- <a href="qsqlcursor.html">TQSqlCursor</a> cur( "prices" );
- cur.<a href="qsqlcursor.html#select">select</a>( "id=202" );
- if ( cur.<a href="qsqlquery.html#next">next</a>() ) {
- <a href="qsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="qsqlcursor.html#primeUpdate">primeUpdate</a>();
- double price = buffer-&gt;<a href="qsqlrecord.html#value">value</a>( "price" ).toDouble();
+ <a href="ntqsqlcursor.html">TQSqlCursor</a> cur( "prices" );
+ cur.<a href="ntqsqlcursor.html#select">select</a>( "id=202" );
+ if ( cur.<a href="ntqsqlquery.html#next">next</a>() ) {
+ <a href="ntqsqlrecord.html">TQSqlRecord</a> *buffer = cur.<a href="ntqsqlcursor.html#primeUpdate">primeUpdate</a>();
+ double price = buffer-&gt;<a href="ntqsqlrecord.html#value">value</a>( "price" ).toDouble();
double newprice = price * 1.05;
- buffer-&gt;<a href="qsqlrecord.html#setValue">setValue</a>( "price", newprice );
- cur.<a href="qsqlcursor.html#update">update</a>();
+ buffer-&gt;<a href="ntqsqlrecord.html#setValue">setValue</a>( "price", newprice );
+ cur.<a href="ntqsqlcursor.html#update">update</a>();
}
}