Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: InitialDir bug in OpenDialog BCBXE4



Permlink Replies: 2 - Last Post: Sep 14, 2017 4:58 AM Last Post By: Colin Maharaj Threads: [ Previous | Next ]
Colin Maharaj

Posts: 116
Registered: 12/2/99
InitialDir bug in OpenDialog BCBXE4
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 25, 2017 4:16 AM
This code does not work as expected...

OpenDialog1->InitialDir = ExtractFilePath(ParamStr(0));

But if I search replace "
.
" to "
"
it works.

Maybe somewhere in there in the class you should do the same
search/replace because for some weird reason the "
.
"
is causing the path to set to my documents.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Markus Humm

Posts: 4,977
Registered: 11/9/03
Re: InitialDir bug in OpenDialog BCBXE4
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 13, 2017 8:43 AM   in response to: Colin Maharaj in response to: Colin Maharaj
Am 25.08.2017 um 13:16 schrieb Colin Maharaj:
This code does not work as expected...

OpenDialog1->InitialDir = ExtractFilePath(ParamStr(0));

But if I search replace "
.
" to "
"
it works.

Maybe somewhere in there in the class you should do the same
search/replace because for some weird reason the "
.
"
is causing the path to set to my documents.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Hello,

some hint: this newsgroup is about the bugreporting website of EMBT and
not about reporting bugs in other products of them.

Those should be entered into quality.embarcadero.com or get discussed in
one of the apropriate product groups.

Greetings

Markus
Colin Maharaj

Posts: 116
Registered: 12/2/99
Re: InitialDir bug in OpenDialog BCBXE4
Click to report abuse...   Click to reply to this thread Reply
  Posted: Sep 14, 2017 4:58 AM   in response to: Markus Humm in response to: Markus Humm
ah, point taken.....

On 9/13/2017 11:43 AM, Markus Humm wrote:
This code does not work as expected...

OpenDialog1->InitialDir = ExtractFilePath(ParamStr(0));

But if I search replace "
.
" to "
"
it works.

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02