Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AVEVA™ Plant SCADA

SQLNoFields

  • Last UpdatedJul 18, 2023
  • 1 minute read

When the hGeneral is the connection handle, the function returns the number of fields or columns that were returned by the last SQL statement. When the hGeneral is the recordset handle, the function returns the number of fields or columns in the recordset itself.

Note: This function is deprecated and may be removed in future releases.

This function can be called in the foreground or background.

Syntax

SQLNoFields(hGeneral)

hGeneral:

The handle either to:

The DB connection object, returned from either SQLCreate() or SQLConnect() function. The handle identifies the DB connection object where details of the associated SQL connection are stored.

Or:

The recordset.

Return Value

The number of fields. A value of 0 is returned if no fields were returned or if an error has been detected. (For details of an error code, call the SQLErrMsg function).

SQLSet, SQLAppend, SQLExec, SQLGetRecordset, SQLCall, SQLGetScalar, SQLEnd, SQLNumChange, SQLNoFields, SQLNumFields, SQLFieldInfo, SQLGetField, SQLIsNullField, SQLRowCount, SQLNext, SQLPrev

Example

See SQLFieldInfo.

See Also

SQL Functions

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in