ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Version: 2026

How to create and run an SQL query through programming?
This help page explains how to create and run an SQL query through programming.
Overloading a WLanguage function or using a WLanguage function in an SQL query
WLanguage includes the "WL" keyword...
Report based on an SQL query with data accessed via a connection (ODBC, etc.)
A report based on an SQL query with data accessed via a connection can print records from a database accessible via a specific ODBC driver or via a Native Connector...
HExecuteSQLQueryAsynchronous (Function)
Executes an SQL query asynchronously.
SQL functions for accessing the external databases
List of SQL functions used to access the external databases
Cross-database queries
An SQL query can operate on different databases...
<Source>.ExecuteSQLQuery (Function)
Initializes a query written in SQL language and declares this query to the HFSQL engine.
HSuggestKeyStart (Function)
Starts collecting information on executed queries.
<Source>.ExecuteSQLQueryAsynchronous (Function)
Executes an SQL query asynchronously.
HSuggestKey (Function)
Returns a list of keys to add to data files to improve query performance.
HSuggestKeyEnd (Function)
Finishes collecting information on executed queries.
Creating a query in SQL code
The query editor allows you to create a query by typing SQL code...
HExecuteSQLQuery (Function)
Initializes a query written in SQL language and declares this query to the HFSQL engine.
<Connection variable>.UpdateQuery (Function)
Creates or updates a query on an HFSQL server.
HUpdateQuery (Function)
Creates or updates a query on an HFSQL server.
XMLResult (Function)
Returns the result of a calculation XPath query.
ODBCPassword (Property)
The ODBCPassword property is used to: Identify the password used to connect to a database via an ODBC driver or a Native Connector. Specify the password used to connect to a database via an ODBC driver or a Native Connector....
ODBCUserName (Property)
ODBCUserName is used to: Identify the username used to connect to a database via an ODBC driver or a Native Connector. Specify the username used to connect to a database via an ODBC driver or a Native Connector....
<xmlDocument variable>.ExecuteXPath (Function)
Executes an XPATH query in an xmlDocument variable.
SQLLock (Function)
Used to lock: The entire data table, in read and write mode. Its data cannot be accessed by other computers. The records selected by the query. This data cannot be accessed by the other computers. This method can be used to update records for example....
Query editor: Characteristics
HConnect (Function)
Redefines one or more connection parameters via Native Connector (Access, SQL Server, MySQL or Oracle) or via an OLE DB access on a specific table or set of tables.
<Source>.FreeQuery (Function)
Free the resources of a query (after the call to HExecuteQuery or HExecuteSQLQuery).
HFreeQuery (Function)
Free the resources of a query (after the call to HExecuteQuery or HExecuteSQLQuery).
<Source>.Delete (Function)
Deletes a record from a data file (query or view).
HDelete (Function)
Deletes a record from a data file (query or view).
Using the query result
The result of a select query can be used in......
<Source>.DeactivateFilter (Function)
Temporarily disables the filter on a data file (view or query).
HDeleteAll (Function)
Deletes all records from a data file, an HFSQL view or a query.
<Source>.RetrieveRecord (Function)
Returns the content of the current record (in a file, a view or a query, ...).
<Source>.DeleteAll (Function)
Deletes all records from a data file, an HFSQL view or a query.
<Source>.Filter (Function)
Defines and enables a filter on a data file, view or query.
<Source>.FilterStartsWith (Function)
Defines and enables a "Start with" filter on a file, view or query.
<Source>.FilterIncludedBetween (Function)
Defines and enables an "Included between" filter on a file, view or query.
HFilter (Function)
Defines and enables a filter on a data file, view or query.
HFilterStartsWith (Function)
Defines and enables a "Start with" filter on a file, view or query.
HFilterIncludedBetween (Function)
Defines and enables an "Included between" filter on a file, view or query.
HRetrieveRecord (Function)
Returns the content of the current record (in a file, a view or a query, ...).