I originally tried writing an Integer, but it wouldn't accept the variable as an integer, no matter what I did. (WriteInteger)
So I decided to write it as a string.
nTabColumn is created using:
var nTabColumn = StrToInt (InputBox ("Tab To Column", "Tab To Column?", "0"));
Code: Select all
TMemIniFile tiIni = TMemIniFile.Create ("TabToColumn_Settings.ini");
//var nTabColumn = tiIni.ReadInteger ("Settings", "TabToColumn", nTabColumn);
tiIni.WriteString ("Settings", "TabToColumn", IntToStr (nTabColumn));
tiIni.UpdateFile;
tiIni.Free;
Code: Select all
[Settings]
TabToColumn=TabToColumn
And I couldn't find any examples.