Dialog: Lets Talk...-------------------------
Tom's RSS Pro: Tutorial V3 (Design) In Depth
The amount of time I tried to find out how to load and save files.
Ohh my gosh... I was looking everywhere.
I was about to use the old way.
And use InputQuerry from RSS.

Tom's RSS Pro: Tutorial V3 (Design) In Depth
And this is the code that brings it up.
procedure Button3Click(Sender: TObject);
var d;
begin
d:='c:\rss-data';
InputQuery('Casino Config Question','Open Casino Config?',d);
end;
That just was not good enough.
I wanted the regular open and save requester.
Hmmm,
So frustrating trying to figure this stuff out.
When you get no assistance.
Looked on google.
No go.
Looked for help with Delphi.
Still no go.
Frak...
Was not getting anywhere.
Then I noticed the Dialog objects.
Hmmm....
Maybe these do something?
But how do I use em?
I kept getting errors, like this.

Tom's RSS Pro: Tutorial V3 (Design) In Depth
Ohh man...
Drove me nuts...
Anyway...
I finally figured it out.
And managed to get it to work.
So here is...
Dialog: Lets Talk...-------------------------How to add in Open and Save Dialog box and get them to work.For this example.
Lets keep it as simple as possible.
Lets make a simple form.
Like this.

Tom's RSS Pro: Tutorial V3 (Design) In Depth
It has two buttons on it.
"Load File"
"Save File"
It has two Dialog objects on it.
OpenDialog
SaveDialog
And it has a simple Panel on it.
Where we will display the results.
Now double click on each button.
So we can have something to write code in.
procedure Button1Click(Sender: TObject);{Load Button}
begin
end;
procedure Button2Click(Sender: TObject);{Save Button}
begin
end;
Do the same for the two Dialog boxes. Open and Save.
procedure OpenDialog1CanClose(Sender: TObject; var CanClose: Boolean);
begin
end;
procedure SaveDialog1CanClose(Sender: TObject; var CanClose: Boolean);
begin
end;
So far, easy...
Now you will be surprised as I was at how easy this is.
First lets open a file.
And send the file name to the panel.
So you can see what it is you opened.
procedure Button1Click(Sender: TObject);
begin
OpenDialog1.Execute(false);
Panel1.Caption:=OpenDialog1.FileName;
end;
Man, you have no idea. How many times I had to go about doing this.
First I tried
OpenDialog1.Execute then
But that only gave me the error message.

Tom's RSS Pro: Tutorial V3 (Design) In Depth
So it needed a parameter?
What kind?
And how?
What kind of parameter?
I tried the basics.
true/false
OpenDialog1.Execute(True);
Did nothing.
What???
OpenDialog1.Execute(false);
Ohh my god...
I got the dam requester to open up.
Yippee... what a re-leaf.
Hey, if that part works.
Perhaps I can save a file as well.
procedure Button2Click(Sender: TObject);
begin
SaveDialog1.Execute(false);
Panel1.Caption:=SaveDialog1.FileName;
end;
So here are some pictures that explain what happens.

Tom's RSS Pro: Tutorial V3 (Design) In Depth

Tom's RSS Pro: Tutorial V3 (Design) In Depth

Tom's RSS Pro: Tutorial V3 (Design) In Depth

Tom's RSS Pro: Tutorial V3 (Design) In Depth
There it is...
Done and dusted.
There are other Dialog boxes you can add in as well.
I may go into them at some later stage if I need em.