PC SOFT

AYUDA EN LÍNEA
DE WINDEV, WEBDEV Y WINDEV MOBILE


  • Detailed example for deleting a parameter (syntax 1)
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReportes y ConsultasCódigo de Usuario (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Código Navegador
WINDEV Mobile
AndroidWidget Android iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Otros
Procedimientos almacenados
DeleteParameter (Function)
 
Deletes a parameter (or set of parameters) that was saved:
Caution: This operation is irreversible and it cannot be undone.
Versiones 15 y posteriores
Android This function is now available for the Android applications.
Nueva funcionalidad versión 15
Android This function is now available for the Android applications.
Android This function is now available for the Android applications.
Versiones 17 y posteriores
Universal Windows 10 App This function is now available for the Windows Phone applications.
Nueva funcionalidad versión 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.
Versiones 18 y posteriores
Widget Android This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Nueva funcionalidad versión 18
Widget Android This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Widget Android This function is now available in Android Widget mode.
Universal Windows 10 App This function is now available in Windows Store apps mode.
Versiones 19 y posteriores
iPhone/iPad This function is now available for the iPhone/iPad applications.
Nueva funcionalidad versión 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.
Versiones 21 y posteriores
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Nueva funcionalidad versión 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.
Ejemplo
// Delete a parameter (syntax 1)
DeleteParameter("MyParameter")
WINDEVAndroidWidget Android iPhone/iPadWindows MobileJava
// Delete a parameter (syntax 1)
DeleteParameter("WIN_Window1\EDT_Edit1")
WINDEVAndroidWidget Android iPhone/iPadWindows MobileJava
// Delete parameters from the "WIN_Win1" window (syntax 2)
DeleteParameter(WIN_Win1)
// equivalent to: DeleteParameter(WIN_Win1..FullPath)
Sintaxis

Deleting a saved parameter Ocultar los detalles

<Result> = DeleteParameter(<Parameter Name>)
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. To find out the error details, use 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/iPadWindows MobileJavaCó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 not sensitive to the case and to the accented characters found in the parameter name (Parameter and parameter are equivalent).
WINDEVReportes y ConsultasWindows MobileCó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. To find out the error details, use 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).

Deleting all the saved parameters Ocultar los detalles

<Result> = DeleteParameter()
<Result>: Boolean
  • True if the function was successful,
  • False otherwise. To find out the error details, use 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/iPadWindows MobileJavaCó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)

In this example, the deleted elements are highlighted.
Code usedBackup file: RegistryBackup file: XML
DeleteParameter
("Param1")
HKEY_CURRENT_USER
\Software
\<Company>
\<Application>
Param1
Param2
<Param1> Value </Param1>
DeleteParameter
("Window1\Edit2\X")
HKEY_CURRENT_USER
\Software
\<Company>
\<Application>
\Window1\
Edit2
X
Y
<Window1>
<Edit2>
<X>Value </X>
<Y>Value </Y>
</Edit2>
</Window1>
DeleteParameter
("Window1\Edit2")
HKEY_CURRENT_USER
\Software
\<Company>
\<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

  • Versiones 15 y posteriores
    AndroidWidget Android In Android, the persistent values are saved in the Shared Preferences of the application.
    Nueva funcionalidad versión 15
    AndroidWidget Android In Android, the persistent values are saved in the Shared Preferences of the application.
    AndroidWidget Android In Android, the persistent values are saved in the Shared Preferences of the application.
  • Versiones 15 y posteriores
    Universal Windows 10 App In Windows Phone, the persistent values are saved in the parameters of the application ("Isolated Storage Settings").
    Nueva funcionalidad versión 15
    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").
  • Versiones 19 y posteriores
    iPhone/iPad In iOS, the persistent values are stored in the parameters of the application ("NSUserDefault").
    Nueva funcionalidad versión 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").
Componente : wd240std.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