Voilà, j'ai un petit soucis, en effet, pour mon programme permettant de gérer ces comptes d'un jeu quel qu’il soit, l'utilisateur rempli des Edits ensuite enregistrés dans un INI de la manière suivante :
Code : Tout sélectionner
If FileExists(@DocumentsCommonDir & "\Comptes.ini") = 0 Then
$chiffre = 0
Else
$chiffre = IniRead(@DocumentsCommonDir & "\Compte.ini", "Nombre de compte", "NoDC", 0)
$chiffre += 1
EndIf
IniWrite(@DocumentsCommonDir & "\Comptes.ini", "Nombre de compte", "NoDC", $chiffre)
IniWrite(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "NDC" & $chiffre, GUICtrlRead($IP_NDC))
IniWrite(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "MDP" & $chiffre, GUICtrlRead($IP_MDP))
IniWrite(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "Serveur" & $chiffre, GUICtrlRead($IP_SER))
IniWrite(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "lvl" & $chiffre, GUICtrlRead($IP_LVL))
EndIf
Code : Tout sélectionner
If FileExists(@DocumentsCommonDir & "\Comptes.ini") = 0 Then
For $i = 0 To IniRead(@DocumentsCommonDir & "\Comptes.ini", "Nombre de compte", "NoDC", 0) Step 1
If $i = 0 Then
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "NDC" & $i, 0), 16, 104, 4, 4)
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "MDP" & $i, 0), 176, 104, 4, 4)
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "Serveur" & $i, 0), 336, 104, 4, 4)
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "lvl" & $i, 0), 432, 104, 4, 4)
GUICtrlCreateGroup("", -99, -99, 1, 1)
Else
$pos += 10
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "NDC" & $i, 0), 16, 104 + $pos, 4, 4)
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "MDP" & $i, 0), 176, 104 + $pos, 4, 4)
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "Serveur" & $i, 0), 336, 104 + $pos, 4, 4)
$Label & $i = GUICtrlCreateLabel(IniRead(@DocumentsCommonDir & "\Comptes.ini", "Comptes", "lvl" & $i, 0), 432, 104 + $pos , 4, 4)
GUICtrlCreateGroup("", -99, -99, 1, 1)
EndIf
Next
EndIf

Des idées ?