How to delete duplicates variables in a loop from an .ini file
Go from this:
Code: Select all
[Section]
Var1=Apple
Var2=Apple
Var3=Peach
Var4=Banana
Var5=Apple
Code: Select all
[Section]
Var1=Apple
Var2=
Var3=Peach
Var4=Banana
Var5=
Code: Select all
Loop 5
{
IniRead, Var%A_Index%, Settings.ini, Section, Var%A_Index%
When a duplicate is found empty the variable and Write to .ini file
}