AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Este contenido se ha traducido automáticamente.  Haga clic aquí  para ver la versión en inglés.
Ayuda / WLanguage / Funciones WLanguage / Controles, páginas y ventanas / Funciones de controles
  • Name of the parameter in a registry
WINDEV
WindowsLinuxJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadIOS WidgetApple WatchMac Catalyst
Otros
Procedimientos almacenados
Saves a persistent value:
  • in the registry or the equivalent file on the runtime platform.
    • AndroidWidget Android In Android, the persistent values are saved in the Shared Preferences of the application.
    • iPhone/iPadIOS Widget In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
    • WEBDEV - Código Servidor In a WEBDEV website, persistent values are stored in a browser cookie.
    • WINDEVLinux In a Linux application, persistent values are saved in the $HOME/.local/share folder.
  • WINDEVReportes y ConsultasAndroidWidget Android iPhone/iPadIOS WidgetJavaCódigo de Usuario (UMC) in the file specified by InitParameter.
This value can be read by LoadParameter the next time the application is started.
Ejemplo
// Save
SaveParameter("LOGIN", EDT_Edit1)

// Restore
EDT_Edit1 = LoadParameter("LOGIN")
Sintaxis
SaveParameter(<Parameter name> , <Parameter value>)
<Parameter name>: Character string
Name of the parameter to be saved. This parameter must not correspond to an empty string.
WINDEVWindowsJava A full path can be specified if this parameter was saved in the registry. The accepted separators are ".","/" and "\". The FullName property returns the full path of a control. For more details, see the remarks.
Java If the selected initialization mode is the registry, SaveParameter is case and accent-insensitive (e.g. "Parameter" and "parameter" are equivalent).
<Parameter value>: Character string or integer
Value to save.
Observaciones

Name of the parameter in a registry

  • Case 1: Parameter name is "Param1 ":
    This parameter is saved in the registry by using the following path:
    HKEY_CURRENT_USER\Software\<Company>\<Application>\Param1
  • Case 2: parameter name is "FEN_Window1\SAI_Entry2\Param1 ":
    This parameter is saved in the registry by using the following path:
    HKEY_CURRENT_USER\Software\<Company>\<Application>\WIN_Window1\EDT_Edit2\Param1
  • Case 3: parameter name is "FEN_Fenêtre1.SAI_Saisie2.Param1 ":
    This parameter is saved in the registry by using the following path:
    HKEY_CURRENT_USER\Software\<Company>\<Application>\WIN_Window1\EDT_Edit2\Param1
Reminder To find out the path to the registry where application information is stored, use the ProjectInfo function with the constant piRegistre.
<Company> corresponds to the company specified when creating the executable. If this name is not specified, <Company> corresponds to "WINDEV applications".
Note: In Test mode, the path used in the registry is as follows: HKEY_CURRENT_USER\SOFTWARE\PC SOFT\WinDev\30.0\TestMode\<project>.
Clasificación Lógica de negocio / UI: Código neutro
Componente: wd300std.dll
Versión mínima requerida
  • Versión 9
Esta página también está disponible para…
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 27/03/2025

Señalar un error o enviar una sugerencia | Ayuda local