|
|
|
|
|
- Detailed example for deleting a parameter (syntax 1)
- Special cases
DeleteParameter (Function) In french: SupprimeParamètre Deletes a parameter or a set of saved parameters: Caution: This operation is irreversible and it cannot be undone.
// Delete a parameter (syntax 1) DeleteParameter("MyParameter")
Syntax
Deleting a saved parameter Hide the details
<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),
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). Remarks Detailed example for deleting a parameter (syntax 1) | | | Code used | Backup file: Registry | Backup 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 - In a WEBDEV site, persistent values are stored in a browser cookie.
Business / UI classification: Neutral code
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|