PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Limitations
  • xBase
  • Number of records processed by the INSERT/UPDATE/DELETE updates
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
<Source>.NbRec (Function)
In french: <Source>.NbEnr
AjaxNot available
ODBCNot available with this kind of connection
Returns the number of records in a data file, query or HFSQL view: active records, crossed records, deleted records, etc.
Caution: <Source>.NbRec ignores the current filter.
Versions 15 and later
Android This function is now available for Android applications.
New in version 15
Android This function is now available for Android applications.
Android This function is now available for Android applications.
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Versions 18 and later
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Android Widget This function is now available in Android widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Remark: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Active records in "Customer" data file
NbCustomerRec = Customer.NbRec()
Syntax
<Result> = <Source>.NbRec([<Options>])
<Result>: Integer
  • Number of records found,
  • -1 if an error occurred. HError returns more details about the problem.
Native Connectors (Native Accesses) Native XML Connector: the number of records depends on the use of <Source>.ActivateAutoFilter/<Source>.DeactivateAutoFilter:
  • If the filtering is enabled, only the records belonging to the current parent are taken into account.
  • If the filter is not active, the records found in the XML file are taken into account.
The filtering is enabled by default.
<Source>: Type corresponding to the specified source
Name of data file, HFSQL view or query used.
<Options>: Optional constant (or combination of constants)
Configures the type of record to count.
Versions 24 and later
hBrowsableNonBlocking
New in version 24
hBrowsableNonBlocking
hBrowsableNonBlocking
Number of records in the view or query that can currently be read (no record locking).
This constant is available for the views and queries in HFSQL Classic or Client/Server.
This constant has no effect for the data files and for the Native Connectors
hNonBlockingNumber of records retrieved in the view or query without waiting for the view or query to be entirely filled. To knwo if the execution of the view or query is completed, use the ExecutionCompleted property.
This constant is available for the views and queries in HFSQL Classic or Client/Server.
This constant has no effect for the data files and for the Native Connectors
hStateActive
(default value)
Number of active records (not crossed or deleted).
hStateAllTotal number of records in the data file (hStateActive + hStateCrossed + hStateDel).
hStateCrossedNumber of crossed records.
Hyper File 5.5 This option is not available.
hStateDelNumber of deleted records (does not include the crossed records).

PHPOLE DBNative Connectors (Native Accesses) This parameter is ignored. The number of records calculated by <Source>.NbRec always corresponds to the total number of records in the table, in the database.
This number can differ from the number of displayed records if records have been added or deleted by another user. To view these new records, reinitialize an iteration by using one of the following functions: <Source>.ReadFirst, <Source>.ReadLast, <Source>.First, <Source>.Last.
Java Access by JDBC
This parameter is ignored. The number of records calculated by <Source>.NbRec always corresponds to the total number of records in the table, in the database.
This number can differ from the number of displayed records if records have been added or deleted by another user. To view these new records, reinitialize an iteration by using one of the following functions: <Source>.ReadFirst, <Source>.ReadLast, <Source>.First, <Source>.Last.
Remarks

Limitations

  • <Source>.NbRec does not return the number of records modified by an UPDATE query.
  • <Source>.NbRec does not work with queries that use the hWithFilter constant.
WINDEVWEBDEV - Server codeExternal languageNative Connectors (Native Accesses)

xBase

<Source>.NbRec with the hStateActive or hStateAll constant also returns the number of crossed or deleted records (backward compatibility).
However, you can get the number of crossed or deleted records by using <Source>.NbRec with the hStateDel or hStateCrossed constant.
Versions 18 and later

Number of records processed by the INSERT/UPDATE/DELETE updates

When running an INSERT/UPDATE/DELETE query on HFSQL data files, the number of added, modified or deleted records is returned by the H.NbRecModificationQuery variable.
New in version 18

Number of records processed by the INSERT/UPDATE/DELETE updates

When running an INSERT/UPDATE/DELETE query on HFSQL data files, the number of added, modified or deleted records is returned by the H.NbRecModificationQuery variable.

Number of records processed by the INSERT/UPDATE/DELETE updates

When running an INSERT/UPDATE/DELETE query on HFSQL data files, the number of added, modified or deleted records is returned by the H.NbRecModificationQuery variable.
Business / UI classification: Business Logic
Component: wd270hf.dll
Minimum version required
  • Version 25
This page is also available for…
Comments
Click [Add] to post a comment