PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Automatic management of errors
  • Passing parameters
  • Running a stored procedure from an SQL code
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
HExecuteProcedure (Function)
In French: HExécuteProcédure
HFSQL Client/ServerAvailable only with this kind of connection
Runs a stored procedure.
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Versions 18 and later
Universal Windows 10 App This function is now available in Windows Store apps mode.
New in version 18
Universal Windows 10 App This function is now available in Windows Store apps mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
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.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
New in version 22
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Android Widget This function is now available in Android Widget mode.
Android This function is now available for the Android applications.
WINDEVJava This function is now available for the Java applications.
Example
// Run the "SalesPerYear" procedure and pass "2006" in parameter
HExécuteProcédure("HFConnection", "SalesPerYear", 2006)
Syntax
<Result> = HExecuteProcedure(<Connection Name>, <Procedure Name>, [ <Parameter 1> [...[, <Parameter N>]]])
<Result>: Variant
  • Result of the stored procedure.
  • Empty string ("") if <Procedure Name> returns no result.
<Connection Name>: Character string (with or without quotes)
Connection to the server that runs the stored procedure.
<Procedure Name>: Character string (with or without quotes)
Name of the stored procedure to run.
<Parameter 1>: Optional variant
First parameter that must be passed to <Procedure Name>.
<Parameter N>: Optional variant
Nth parameter that must be passed to <Procedure Name>.
Remarks

Automatic management of errors

The automatic management of errors is disabled in the stored procedures. However, HOnError can be used to run a specific procedure (stored procedure).

Passing parameters

The parameters passed to the stored procedure are passed "by address": if these parameters are modified in the stored procedure, they will also be modified in the application that ran this stored procedure.

Running a stored procedure from an SQL code

A stored procedure can be called:
Components
WINDEVWEBDEV - Server codeReports and Queries wd230hf.dll
Windows Mobile wp230hf.dll
Java wd230java.jar
Linux wd230hf.so
Android wd230android.jar
Minimum required version
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment