| View previous topic :: View next topic |
| Author |
Message |
xxgy0zaxx Expert Cheater
Reputation: 0
Joined: 20 Mar 2008 Posts: 147
|
Posted: Sat Oct 25, 2008 3:00 pm Post subject: [HELP]Delphi TEdit. |
|
|
Hi , im trying to make a program in delphi , but i don't know how to do it so looking for a bet of a explanation.
So what im trying to do is that , when they open the program they see , 4 Different TEdit boxes. and each one i want to do something, One to save Name, Another save Address , another Phone Number , and another to save Email.
But i don't know how to. so please if someone can help me with a source or just explain that would be nice. _________________
|
|
| Back to top |
|
 |
OSIRIS Grandmaster Cheater
Reputation: 0
Joined: 27 Aug 2006 Posts: 654
|
Posted: Sat Oct 25, 2008 3:33 pm Post subject: |
|
|
Where are trying to save them to?
A database?
text file?
registry? |
|
| Back to top |
|
 |
imeantobebad Master Cheater
Reputation: 0
Joined: 11 Jan 2007 Posts: 469 Location: Moree
|
Posted: Mon Oct 27, 2008 3:00 am Post subject: |
|
|
| use ur imagination, put in what u need then search for something to do with saving to .txt files. Obviously ur gunna need 4 Tedit's and a TButton to save your info. |
|
| Back to top |
|
 |
DeletedUser14087 I post too much
Reputation: 2
Joined: 21 Jun 2006 Posts: 3069
|
Posted: Mon Oct 27, 2008 6:05 am Post subject: |
|
|
He doesn't have to have a button, he could use the OnShow/Close events (TForm).
u would suggest using INIFiles, add it to the uses list, it's easier.
| Code: | var Test: INIFile;
begin
Test:=TINIFile.Create('LOL.ini');
with Test do
begin
WriteString('Settings', 'Edit1', Edit1.Text);
end;
end; |
|
|
| Back to top |
|
 |
|