Aide:IniDelete.txt
De Wiki AutoIt Français
Document original V3.3.6.1 :
###Function###
IniDelete
###Description###
Deletes a value from a standard format .ini file.
###Syntax###
IniDelete ( "filename", "section" [, "key"] )
###Parameters###
@@ParamTable@@
filename
The filename of the .ini file.
section
The section name in the .ini file.
key
[optional] The key name in the .ini file to delete. If the key name is not given the entire section is deleted. The Default keyword may also be used which will cause the section to be deleted.
@@End@@
###ReturnValue###
@@ReturnTable@@
Success: Returns 1.
Failure: Returns 0 if the INI file does not exist or if the file is read-only.
@@End@@
###Remarks###
A standard ini file looks like:
<i>[SectionName]
Key=Value</i>
###Related###
IniRead, IniWrite, IniReadSection, IniReadSectionNames, IniRenameSection, IniWriteSection
###Example###
@@IncludeExample@@
Document traduit V3.3.6.1 :
###Function###
IniDelete
###Description###
Supprime une valeur à partir d'un fichier au format .ini standart.
###Syntax###
IniDelete ( "filename", "section" [, "key"] )
###Parameters###
@@ParamTable@@
filename
Nom du fichier .ini.
section
Nom de la section dans le fichier .ini.
key
[optionnel] Nom de la clé à supprimer dans le fichier .ini. Si le nom de la clé n'est pas donné, la section entière sera supprimée. Le mot-clé "Default" peux aussi être utilisé pour supprimer la section.
@@End@@
###ReturnValue###
@@ReturnTable@@
Succès: Retourne 1.
Échec: Retourne 0 si le fichier .ini n'existe pas ou s'il est en lecture seule.
@@End@@
###Remarks###
Un fichier .ini standard est de la forme :
<i>[Nom_De_La_Section]
Clé=Valeur</i>
###Related###
<a href="IniRead.htm">IniRead</a>, <a href="IniWrite.htm">IniWrite</a>, <a href="IniReadSection.htm">IniReadSection</a>, <a href="IniReadSectionNames.htm">IniReadSectionNames</a>, <a href="IniRenameSection.htm">IniRenameSection</a>, <a href="IniWriteSection.htm">IniWriteSection</a>
###Example###
@@IncludeExample@@
Traducteur : HeaTon