From 5fffa30386502b5423e45c2ed5e6af756b11c7b4 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Tue, 28 May 2024 10:17:01 +0900 Subject: Rename nt* sql related files to equivalent tq* Signed-off-by: Michele Calgaro --- doc/html/sql-overview-navigating-main-cpp.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'doc/html/sql-overview-navigating-main-cpp.html') diff --git a/doc/html/sql-overview-navigating-main-cpp.html b/doc/html/sql-overview-navigating-main-cpp.html index 51171b5e0..de1c8b1eb 100644 --- a/doc/html/sql-overview-navigating-main-cpp.html +++ b/doc/html/sql-overview-navigating-main-cpp.html @@ -43,8 +43,8 @@ body { background: #ffffff; color: black; } *****************************************************************************/ #include <ntqapplication.h> -#include <ntqsqldatabase.h> -#include <ntqsqlquery.h> +#include <tqsqldatabase.h> +#include <tqsqlquery.h> #include "../connection.h" int main( int argc, char *argv[] ) @@ -52,16 +52,16 @@ int main( int argc, char *argv[] ) TQApplication app( argc, argv, FALSE ); if ( createConnections() ) { - TQSqlQuery query( "SELECT id, name FROM people ORDER BY name" ); - if ( ! query.isActive() ) return 1; // Query failed + TQSqlQuery query( "SELECT id, name FROM people ORDER BY name" ); + if ( ! query.isActive() ) return 1; // Query failed int i; - i = query.size(); // In this example we have 9 records; i == 9. - query.first(); // Moves to the first record. - i = query.at(); // i == 0 - query.last(); // Moves to the last record. - i = query.at(); // i == 8 - query.seek( query.size() / 2 ); // Moves to the middle record. - i = query.at(); // i == 4 + i = query.size(); // In this example we have 9 records; i == 9. + query.first(); // Moves to the first record. + i = query.at(); // i == 0 + query.last(); // Moves to the last record. + i = query.at(); // i == 8 + query.seek( query.size() / 2 ); // Moves to the middle record. + i = query.at(); // i == 4 } return 0; -- cgit v1.2.1