|
|
|
|
|
- Example 1: Running a query without naming it
- Example 2: Running a query and assigning its result to the controls of a query
- Example 3: Running a query and retrieving information about this query
Example 1: Running a query without naming it This example is used to run a deletion query without naming it. This query will return no result. ResExec = SQLExec("DELETE CUSTOMER WHERE CUSTNUM = " + CustomerNum, "QRY1") IF ResExec = False THEN // Processes the error END
Example 2: Running a query and assigning its result to the controls of a query Example 3: Running a query and retrieving information about this query This example is used to get information about the query run. // Run the controls and retrieve the information SQLExec("SELECT* FROM INV", "QRY1") SQLInfo("QRY1") IF ResExec = False THEN Info("Error while running the query: " + SQL.MesError) ELSE Info("Number of columns: " + SQL.NbCol) END SQLClose("QRY1")
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|