View previous topic :: View next topic |
Author |
Message |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Aug 21, 2007 10:22 am Post subject: [Delphi]Saving |
|
|
as the title says... how to i save? :O
i mean lets say i type in the edit box asdfqwer and i want to close and continue later...
or like if u changed something it saves every Timer1.Interval which would be 20 =\
i googled already...
it tells me to press Ctrl+S to save lol...
|
|
Back to top |
|
 |
DeltaFlyer Grandmaster Cheater
Reputation: 0
Joined: 22 Jul 2006 Posts: 666
|
Posted: Tue Aug 21, 2007 10:25 am Post subject: |
|
|
Search on how to read and write to a file in Delphi. Write the data to a file when you want to save, and read it back in when you start your program the next time.
_________________
Wow.... still working at 827... what's INCA thinking?
zomg l33t hax at this place (IE only). Over 150 people have used it, what are YOU waiting for? |
|
Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Aug 21, 2007 10:46 am Post subject: |
|
|
ok thx
but i have a problem with saving the file... lets say ill use a txt file so i forgot how do i do it... Edit1.Text.Savedialog.free? :O idk...
|
|
Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Aug 21, 2007 10:52 am Post subject: |
|
|
WriteFile/ReadFile
_________________
|
|
Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Aug 21, 2007 11:08 am Post subject: |
|
|
umm ok i used assignfile into a txt file but how to i assign there my delphi source? or i need to read my program and write it in a file?
again, how can i save an image i load? it can save i only missing the part that tells what to save (image1.savedialog or what do i need to write there so it'll save the image?)
|
|
Back to top |
|
 |
UnLmtD Grandmaster Cheater
Reputation: 0
Joined: 13 Mar 2007 Posts: 894 Location: Canada
|
Posted: Tue Aug 21, 2007 11:25 am Post subject: |
|
|
Everything in your editbox should be in a buffer, then pass it into WriteFile.
EDIT: And please tell me wtf is all that BS, Edit1.Text.Savedialog.free and stuff?
_________________
|
|
Back to top |
|
 |
Symbol I'm a spammer
Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Tue Aug 21, 2007 11:33 am Post subject: |
|
|
lol i tried saving an image it should be Image1.??? to save..?
i use savedialog but i dont know what i need to add so it'll save image1 or image2 or what i want..
|
|
Back to top |
|
 |
smartz993 I post too much
Reputation: 2
Joined: 20 Jun 2006 Posts: 2013 Location: USA
|
Posted: Tue Aug 21, 2007 2:30 pm Post subject: |
|
|
Just use ini files, or the registry. I suggest ini files, since the registry can get pretty fucked up!
|
|
Back to top |
|
 |
|