Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: How SaveAll at runtime?



Permlink Replies: 4 - Last Post: Jun 16, 2014 9:34 AM Last Post By: Mike Sutton
vinicius souza ...

Posts: 2
Registered: 3/19/14
How SaveAll at runtime?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 14, 2014 11:13 AM
I need a code that saves everything, but at run time. .
Equal to that of Delphi own SaveAll
How do I?
Mike Sutton

Posts: 84
Registered: 10/2/00
Re: How SaveAll at runtime?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 14, 2014 1:07 PM   in response to: vinicius souza ... in response to: vinicius souza ...
vinicius souza avila wrote:
I need a code that saves everything, but at run time. .
Equal to that of Delphi own SaveAll
How do I?

What is your specific problem? How to add a button? How to save a file?

--
FireMonkey users guide http://bit.ly/10abRZX
Embarcadero MVP
vinicius souza ...

Posts: 2
Registered: 3/19/14
Re: How SaveAll at runtime?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 8:40 AM   in response to: Mike Sutton in response to: Mike Sutton
Mike Sutton wrote:
vinicius souza avila wrote:
I need a code that saves everything, but at run time. .
Equal to that of Delphi own SaveAll
How do I?

What is your specific problem? How to add a button? How to save a file?

--
FireMonkey users guide http://bit.ly/10abRZX
Embarcadero MVP

Wanted to save everything at runtime.
Save the position of buttons, code, height, width ..
The same with the pictures, combobox ..
A simulation of the Delphi SaveAll by code
Linden ROTH

Posts: 467
Registered: 11/3/11
Re: How SaveAll at runtime?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 15, 2014 4:30 PM   in response to: vinicius souza ... in response to: vinicius souza ...
vinicius souza avila wrote:
Mike Sutton wrote:
vinicius souza avila wrote:
I need a code that saves everything, but at run time. .
Equal to that of Delphi own SaveAll
How do I?

What is your specific problem? How to add a button? How to save a file?

--
FireMonkey users guide http://bit.ly/10abRZX
Embarcadero MVP

Wanted to save everything at runtime.
Save the position of buttons, code, height, width ..
The same with the pictures, combobox ..
A simulation of the Delphi SaveAll by code

Is this in your app or in the IDE ...

I'm guessing it your App so if you need to save the current state of you application you'll need to recursively walk the component lists and save all relevant propertied to some sort of INI

there are a bunch of controls already written to do this eg http://www.torry.net/pages.php?id=96 - nb most of these are old but should be easily upgraded as the concept has not changed greatly

--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"

Mike Sutton

Posts: 84
Registered: 10/2/00
Re: How SaveAll at runtime?
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 16, 2014 9:34 AM   in response to: vinicius souza ... in response to: vinicius souza ...
vinicius souza avila wrote:
Wanted to save everything at runtime.
Save the position of buttons, code, height, width ..
The same with the pictures, combobox ..
A simulation of the Delphi SaveAll by code

You can use Delphi's built in serialization functions. See the section Streams and Persistency in the link below.

http://www.delphisources.ru/pages/faq/master-delphi-7/content/LiB0045.html

--
FireMonkey users guide http://bit.ly/10abRZX
Embarcadero MVP
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02