|
|
|
|
|
LoadParameter (Function) In french: ChargeParamètre // Save SaveParameter("LOGIN", EDT_Edit1)  // Restore EDT_Edit1 = LoadParameter("LOGIN", "")
Syntax
<Result> = LoadParameter(<Parameter name> [, <Default value>])
<Result>: Character string or integer - Value of the search parameter.
- If the search parameter is not found, corresponds to <Default value> or to an empty string ("") if no default value was specified.
<Parameter name>: Character string Name of the parameter to be found. This parameter must not correspond to an empty string. <Default value>: Optional character string or optional integer Default value of the parameter. This value will be returned if the value of the parameter is not found.
Related Examples:
|
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.
|
|
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.
|
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|