PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

  • Type of variables saved
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
HSaveParameter (Function)
In French: HSauveParamètre
HFSQL Client/ServerAvailable only with this kind of connection
Saves a persistent value from a stored procedure. Then, this value can be read by HLoadParameter.
Note: The parameters are saved by database in the "user_param.fic" file.
Versions 22 and later
Note: This function can be used with a HFSQL cluster.
New in version 22
Note: This function can be used with a HFSQL cluster.
Note: This function can be used with a HFSQL cluster.
Note: From version 19, HFSQL is the new name of HyperFileSQL.
Versions 22 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
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
// Save a value from a stored procedure
// (Server code)
HSaveParameter("MyParameter", 5)
Syntax

Saving a parameter on the server (in the code of stored procedure) Hide the details

<Result> = HSaveParameter(<Parameter Name> , <Parameter Value>)
<Result>: Boolean
  • True if the backup was performed,
  • False if an error occurred. HErrorInfo is used to identify the error.
<Parameter Name>: Character string (with quotes)
Name of parameter to save. This parameter must not correspond to an empty string and it must not contain the "CR" character (Carriage return).
<Parameter Value>: Type corresponding to the value to save
Value to save.

Saving a parameter on the server (from the Client computer) Hide the details

<Result> = HSaveParameter(<Connection Name> , <Parameter Name> , <Parameter Value>)
<Result>: Boolean
  • True if the backup was performed,
  • False if an error occurred. HErrorInfo is used to identify the error.
<Connection Name>: Character string (with or without quotes)
Name of connection to use. This connection was defined in the data model editor, or by HDescribeConnection or HOpenConnection.
<Parameter Name>: Character string (with or without quotes)
Name of parameter to save. This parameter must not correspond to an empty string and it must not contain the "CR" character (Carriage return).
<Parameter Value>: Type corresponding to the value to save
Value to save.
Remarks

Type of variables saved

HSaveParameter is used to save the simple variables (string, integer, ...).
To save the complex variables (objects, structures, ...), these variables must be serialized in string format by Serialize.
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 14
This page is also available for…
Comments
Click [Add] to post a comment