summaryrefslogtreecommitdiffstats
path: root/doc/man/man3/tqsqlresult.3qt
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:38:31 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2025-07-31 13:43:03 +0900
commit6e4a70d41a2636ce99a1da7b6827ac5685ed3186 (patch)
treeb029ebf1d5be6d1ac0ee361e7bfb68a7dbed0eec /doc/man/man3/tqsqlresult.3qt
parent81ade129093a279e6537db25710583fd2bba9427 (diff)
downloadtqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.tar.gz
tqt-6e4a70d41a2636ce99a1da7b6827ac5685ed3186.zip
Replace TRUE/FALSE with boolean values true/false - part 3
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it> (cherry picked and manually edited from commit 6dd781c483eea56f51ae0eff47d857976b5d0f0d)
Diffstat (limited to 'doc/man/man3/tqsqlresult.3qt')
-rw-r--r--doc/man/man3/tqsqlresult.3qt26
1 files changed, 13 insertions, 13 deletions
diff --git a/doc/man/man3/tqsqlresult.3qt b/doc/man/man3/tqsqlresult.3qt
index c8c3ab66a..0d4476651 100644
--- a/doc/man/man3/tqsqlresult.3qt
+++ b/doc/man/man3/tqsqlresult.3qt
@@ -113,25 +113,25 @@ Returns the data for field \fIi\fR (zero-based) as a QVariant. This function is
.SH "const QSqlDriver * QSqlResult::driver () const\fC [protected]\fR"
Returns the driver associated with the result.
.SH "bool QSqlResult::fetch ( int i )\fC [pure virtual protected]\fR"
-Positions the result to an arbitrary (zero-based) index \fIi\fR. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the index \fIi\fR, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.
+Positions the result to an arbitrary (zero-based) index \fIi\fR. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the index \fIi\fR, and call setAt() with an appropriate value. Return true to indicate success, or false to signify failure.
.SH "bool QSqlResult::fetchFirst ()\fC [pure virtual protected]\fR"
-Positions the result to the first record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the first record, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.
+Positions the result to the first record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the first record, and call setAt() with an appropriate value. Return true to indicate success, or false to signify failure.
.SH "bool QSqlResult::fetchLast ()\fC [pure virtual protected]\fR"
-Positions the result to the last record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the last record, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.
+Positions the result to the last record in the result. This function is only called if the result is in an active state. Derived classes must reimplement this function and position the result to the last record, and call setAt() with an appropriate value. Return true to indicate success, or false to signify failure.
.SH "bool QSqlResult::fetchNext ()\fC [virtual protected]\fR"
-Positions the result to the next available record in the result. This function is only called if the result is in an active state. The default implementation calls fetch() with the next index. Derived classes can reimplement this function and position the result to the next record in some other way, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.
+Positions the result to the next available record in the result. This function is only called if the result is in an active state. The default implementation calls fetch() with the next index. Derived classes can reimplement this function and position the result to the next record in some other way, and call setAt() with an appropriate value. Return true to indicate success, or false to signify failure.
.SH "bool QSqlResult::fetchPrev ()\fC [virtual protected]\fR"
-Positions the result to the previous available record in the result. This function is only called if the result is in an active state. The default implementation calls fetch() with the previous index. Derived classes can reimplement this function and position the result to the next record in some other way, and call setAt() with an appropriate value. Return TRUE to indicate success, or FALSE to signify failure.
+Positions the result to the previous available record in the result. This function is only called if the result is in an active state. The default implementation calls fetch() with the previous index. Derived classes can reimplement this function and position the result to the next record in some other way, and call setAt() with an appropriate value. Return true to indicate success, or false to signify failure.
.SH "bool QSqlResult::isActive () const\fC [protected]\fR"
-Returns TRUE if the result has records to be retrieved; otherwise returns FALSE.
+Returns true if the result has records to be retrieved; otherwise returns false.
.SH "bool QSqlResult::isForwardOnly () const\fC [protected]\fR"
-Returns TRUE if you can only scroll forward through a result set; otherwise returns FALSE.
+Returns true if you can only scroll forward through a result set; otherwise returns false.
.SH "bool QSqlResult::isNull ( int i )\fC [pure virtual protected]\fR"
-Returns TRUE if the field at position \fIi\fR is NULL; otherwise returns FALSE.
+Returns true if the field at position \fIi\fR is NULL; otherwise returns false.
.SH "bool QSqlResult::isSelect () const\fC [protected]\fR"
-Returns TRUE if the current result is from a SELECT statement; otherwise returns FALSE.
+Returns true if the current result is from a SELECT statement; otherwise returns false.
.SH "bool QSqlResult::isValid () const\fC [protected]\fR"
-Returns TRUE if the result is positioned on a valid record (that is, the result is not positioned before the first or after the last record); otherwise returns FALSE.
+Returns true if the result is positioned on a valid record (that is, the result is not positioned before the first or after the last record); otherwise returns false.
.SH "QSqlError QSqlResult::lastError () const\fC [protected]\fR"
Returns the last error associated with the result.
.SH "TQString QSqlResult::lastQuery () const\fC [protected]\fR"
@@ -139,7 +139,7 @@ Returns the current SQL query text, or TQString::null if there is none.
.SH "int QSqlResult::numRowsAffected ()\fC [pure virtual protected]\fR"
Returns the number of rows affected by the last query executed.
.SH "bool QSqlResult::reset ( const TQString & query )\fC [pure virtual protected]\fR"
-Sets the result to use the SQL statement \fIquery\fR for subsequent data retrieval. Derived classes must reimplement this function and apply the \fIquery\fR to the database. This function is called only after the result is set to an inactive state and is positioned before the first record of the new result. Derived classes should return TRUE if the query was successful and ready to be used, or FALSE otherwise.
+Sets the result to use the SQL statement \fIquery\fR for subsequent data retrieval. Derived classes must reimplement this function and apply the \fIquery\fR to the database. This function is called only after the result is set to an inactive state and is positioned before the first record of the new result. Derived classes should return true if the query was successful and ready to be used, or false otherwise.
.SH "void QSqlResult::setActive ( bool a )\fC [virtual protected]\fR"
Protected function provided for derived classes to set the internal active state to the value of \fIa\fR.
.PP
@@ -149,7 +149,7 @@ Protected function provided for derived classes to set the internal (zero-based)
.PP
See also at().
.SH "void QSqlResult::setForwardOnly ( bool forward )\fC [virtual protected]\fR"
-Sets forward only mode to \fIforward\fR. If forward is TRUE only fetchNext() is allowed for navigating the results. Forward only mode needs far less memory since results do not have to be cached. forward only mode is off by default.
+Sets forward only mode to \fIforward\fR. If forward is true only fetchNext() is allowed for navigating the results. Forward only mode needs far less memory since results do not have to be cached. forward only mode is off by default.
.PP
See also fetchNext().
.SH "void QSqlResult::setLastError ( const QSqlError & e )\fC [virtual protected]\fR"
@@ -159,7 +159,7 @@ See also lastError().
.SH "void QSqlResult::setQuery ( const TQString & query )\fC [virtual protected]\fR"
Sets the current query for the result to \fIquery\fR. The result must be reset() in order to execute the query on the database.
.SH "void QSqlResult::setSelect ( bool s )\fC [virtual protected]\fR"
-Protected function provided for derived classes to indicate whether or not the current statement is a SQL SELECT statement. The \fIs\fR parameter should be TRUE if the statement is a SELECT statement, or FALSE otherwise.
+Protected function provided for derived classes to indicate whether or not the current statement is a SQL SELECT statement. The \fIs\fR parameter should be true if the statement is a SELECT statement, or false otherwise.
.SH "int QSqlResult::size ()\fC [pure virtual protected]\fR"
Returns the size of the result or -1 if it cannot be determined.