When I try and use it I always get this error:
'There is no overloaded version of 'SelectDirectory' that can be called with
these arguments' !!!
Example code below:
uses
{...}
FileCtrl;
{...}
procedure TLibraryMakerForm.TeThemeButton1Click(Sender: TObject);
const
SELDIRHELP = 1000;
var
Dir: string;
begin
Dir := cDir_Published;
if SelectDirectory(Dir, [sdAllowCreate, sdPerformCreate, sdPrompt],SELDIRHELP)
then
cDir_Published := Dir;
end;
Can anyone explain why??
Thanks in advance,
Paul Nicholls (Delphi 5 Professional)
"Life is like a road - occasionally you run into potholes or get blowouts." -
Paul Nicholls
HomePage: www.southcom.com.au/~phantom
Email: paul_f_...@antispam.hotmail.com
(Remove "antispam." to reply)
What version are you using?
You may have another routine called SelectDirectory closer in scope than
fileCtrl.SelectDirectory. If you hover the mouse over SelectDirectory, what does
the tooltip say? If you Ctrl-Click on it, where does it take you?
--
Peter Below (TeamB)
Use the newsgroup archives :
http://www.mers.com/searchsite.html
http://www.tamaracka.com/search.htm
http://groups.google.com
http://www.prolix.be
I am currently doing this in Delphi 6, but I have the same problem in Delphi 5
:(
--
Paul Nicholls (Delphi 5 Professional)
"Life is like a road - occasionally you run into potholes or get blowouts." -
Paul Nicholls
HomePage: www.southcom.com.au/~phantom
Email: paul_f_...@antispam.hotmail.com
(Remove "antispam." to reply)
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.00008a1...@antispam.compuserve.com...
At the moment I am using Delphi 6 Enterprise build 6.163 for a project.
--
Paul Nicholls (Delphi 5 Professional)
"Life is like a road - occasionally you run into potholes or get blowouts." -
Paul Nicholls
HomePage: www.southcom.com.au/~phantom
Email: paul_f_...@antispam.hotmail.com
(Remove "antispam." to reply)
"Arjang" <Met...@TObject.nil> wrote in message news:3cd8de08$1_1@dnews...
Perverse <g>. Check if you have a second declaration of the sdAllowCreate,
sdPerformCreate, sdPrompt identifiers in scope.
Yeah, it is perverse isn't it! <g>
--
Paul Nicholls (Delphi 5 Professional)
"Life is like a road - occasionally you run into potholes or get blowouts." -
Paul Nicholls
HomePage: www.southcom.com.au/~phantom
Email: paul_f_...@antispam.hotmail.com
(Remove "antispam." to reply)
"Peter Below (TeamB)" <10011...@compuXXserve.com> wrote in message
news:VA.00008a3...@antispam.compuserve.com...