PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
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
LoadParameter (Function)
In French: ChargeParamètre
Reads a persistent value. The persistent value was saved by SaveParameter:
  • in the registry (or equivalent file on the runtime platform). For example:
    • Versions 15 and later
      AndroidAndroid Widget In Android, the persistent values are saved in the Shared Preferences of the application.
      New in version 15
      AndroidAndroid Widget In Android, the persistent values are saved in the Shared Preferences of the application.
      AndroidAndroid Widget In Android, the persistent values are saved in the Shared Preferences of the application.
    • Versions 19 and later
      iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
      New in version 19
      iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
      iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
    • Versions 17 and later
      Universal Windows 10 App In Windows Phone, the persistent values are saved in the parameters of the application ("Isolated Storage Settings").
      New in version 17
      Universal Windows 10 App In Windows Phone, the persistent values are saved in the parameters of the application ("Isolated Storage Settings").
      Universal Windows 10 App In Windows Phone, the persistent values are saved in the parameters of the application ("Isolated Storage Settings").
  • in the registry (or equivalent file on the runtime platform). For example:
    • Versions 15 and later
      AndroidAndroid Widget In Android, the persistent values are saved in the Shared Preferences of the application.
      New in version 15
      AndroidAndroid Widget In Android, the persistent values are saved in the Shared Preferences of the application.
      AndroidAndroid Widget In Android, the persistent values are saved in the Shared Preferences of the application.
    • Versions 19 and later
      iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
      New in version 19
      iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
      iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
Versions 15 and later
Android This function is now available for the Android applications.
New in version 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versions 17 and later
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
Universal Windows 10 App This function is now available for the Windows Phone applications.
Universal Windows 10 App This function is now available for the Windows Phone 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.
Versions 19 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
New in version 19
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 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
// Save
SaveParameter("LOGIN", EDT_Edit1)

// Restore
EDT_Edit1 = LoadParameter("LOGIN", "")
Syntax
<Result> = LoadParameter(<Parameter Name> [, <Default Value>])
<Result>: Character string or integer
  • Value of sought parameter.
  • If the sought parameter is not found, corresponds to <Default Value> or to an empty string ("") if no default value was specified.
<Parameter Name>: Character string (with quotes)
Name of the parameter to find. This parameter must not correspond to an empty string.
Java If the selected initialization mode is the registry, LoadParameter is not sensitive to the case and to the accented characters found in the parameter name (Parameter and parameter are equivalent).
iPhone/iPad If the selected initialization mode is the registry, the default value is not taken into account.
<Default Value>: Character string (with quotes) or optional integer
Default value of the parameter. This value will be returned if the value of the parameter is not found.
Related Examples:
WD Persistence Training (WINDEV): WD Persistence
[ + ] This example presents the use of InitParameter, LoadParameter and SaveParameter.
These functions are used to configure the backup of controls, variables and other parameters.
This example is divided into three parts:
- The configuration
- The manual management of variables (SaveParameter and LoadParameter)
- The optimization
1°) Configuration

The configuration window enables you to modify the location of the backup of parameters (registry, INI file, XML file) as well as its path (registry key or file path).
2°) Manual management of the variables
The manual management enables you to save the content of the variables via SaveParameter and to restore them via LoadParameter. Each parameter is identified by a name. These values are saved at the location defined in the configuration window.
3°) The optimization
This window explains how to optimize your code to avoid the slowness caused when the saved values are restored. Indeed, when restoring the value of a control, its modification code is run. If you have long processes (queries with parameters for instance), this window shows you how to speed up the loading of the window.
WM Password Cross-platform examples (WINDEV Mobile): WM Password
[ + ] Web sites, bank accounts, ... passwords are everywhere in out life. With WM Password, no need to store all the passwords of your different accounts. The application stores all your passwords in a secure way. WM Password can also generate secure passwords for you.
Components
WINDEVReports and Queries wd230std.dll
Windows Mobile wp230std.dll
Java wd230java.jar
Android wd230android.jar
Minimum required version
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment