| |

VerySource

 Forgot password?
 Register
Search
View: 1087|Reply: 3

How do I store the style and settings of the form with ini! Also read !!!

[Copy link]

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

Post time: 2020-3-10 10:30:01
| Show all posts |Read mode
How do I store the style and settings of the form with ini! Also read !!!
Please enlighten me
Reply

Use magic Report

0

Threads

34

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 China

Post time: 2020-6-2 16:30:01
| Show all posts
Simple~~~ Read *.dfm in the past...
Reply

Use magic Report

0

Threads

34

Posts

21.00

Credits

Newbie

Rank: 1

Credits
21.00

 United States

Post time: 2020-6-3 01:45:01
| Show all posts
Oh, the landlord does not mean the above...

uses IniFiles;

...

var
  INI: TIniFile;
begin
  INI := TIniFile.create('setup.ini');
  Window width := INI.readinteger('Window setting','Window width', 800);//Read. 800 is the default.
  INI.free;
end;


var
  INI: TIniFile;
begin
  INI := TIniFile.create('setup.ini');
  INI.writeinteger('form setting','form width', 800); //write. Write 800 to the corresponding section of INI.
  INI.free;
end;
Reply

Use magic Report

2

Threads

3

Posts

4.00

Credits

Newbie

Rank: 1

Credits
4.00

 China

 Author| Post time: 2020-6-20 20:15:01
| Show all posts
I want to use streaming
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list