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
  • Detailed example for deleting a parameter (syntax 1)
  • Special cases
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
Deletes a parameter or a set of saved parameters:
Warning: This operation is irreversible and cannot be undone.
Ejemplo
// Delete a parameter (syntax 1)
DeleteParameter("MyParameter")
WINDEVAndroidWidget Android iPhone/iPadJava
// Delete a parameter (syntax 1)
DeleteParameter("WIN_Window1\EDT_Edit1")
WINDEVAndroidWidget Android iPhone/iPadJava
// Delete parameters from the "WIN_Win1" window (syntax 2)
DeleteParameter(WIN_Win1)
// equivalent to: DeleteParameter(FEN_Fen1..FullPath)
Sintaxis

Deleting a saved parameter Ocultar los detalles

<Result> = DeleteParameter(<Parameter name>)
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. If an error occurs, you can get more details on the error with ErrorInfo.
<Parameter name>: Character string
Name of parameter to delete. This parameter is sought:
  • in the registry (or equivalent file on the runtime platform),
  • WINDEVReportes y ConsultasiPhone/iPadJavaCódigo de Usuario (UMC) in the parameter file specified by InitParameter.
This name can be a value or a full path (the accepted separators are the dot (.) and the slash (\)). For a full path, all the values found "below" this path will be deleted (see example in the Notes section).
Java If the selected initialization mode is the registry, DeleteParameter is case and accent-insensitive (Parameter and parameter are equivalent).
WINDEVReportes y ConsultasCódigo de Usuario (UMC)

Deleting all the parameters saved for the specified element Ocultar los detalles

<Result> = DeleteParameter(<Element name>)
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. If an error occurs, you can get more details on the error with ErrorInfo.
<Element name>: Character string
Name of the control or window whose saved parameters must be deleted. This element is sought in the parameter file specified by InitParameter (in the registry by default).
WINDEVReportes y ConsultasAndroidWidget Android iPhone/iPadJavaCódigo de Usuario (UMC)

Deleting all the saved parameters Ocultar los detalles

<Result> = DeleteParameter()
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. If an error occurs, you can get more details on the error with ErrorInfo.
All the parameters saved by the application are deleted. During the next start, the application will behave like if it was its first start.
WINDEVReportes y ConsultasiPhone/iPadJavaCódigo de Usuario (UMC) The parameter file of the application specified by InitParameter is entirely cleared. If the parameters have been saved in a INI or XML file, this file is deleted.
Observaciones

Detailed example for deleting a parameter (syntax 1)

Code usedBackup file: Registry databaseBackup file: XML
DeleteParameter
("Param1")
HKEY_CURRENT_USER
\Software
\<Organization>
\<Application>
Param1
Param2
<Param1> Value </Param1>
DeleteParameter
("Window1\Edit2\X")
HKEY_CURRENT_USER
\Software
\<Organization>
\<Application>
\Window1\
Edit2
X
Y
<Window1>
<Edit2>
<X>Value </X>
<Y>Value </Y>
</Edit2>
</Window1>
DeleteParameter
("Window1\Edit2")
HKEY_CURRENT_USER
\Software
\<Organization>
\<Application>
\Window1
\Edit2
X
Y
<Window1>
<Edit2>
<X>Value </X>
<Y>Value </Y>
</Edit2>
</Window1>

<Company> corresponds to the company specified when creating the executable. If this name is not specified, <Company> corresponds to "WINDEV applications".

Special cases

  • AndroidWidget Android In Android, the persistent values are saved in the Shared Preferences of the application.
  • iPhone/iPad 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.
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