This is how data is written from Edit to ini-file.

Ini-> WriteInteger ("bet", "bet", (Edit1-> Text) .ToInt ());

And how to write to the registry?

    0