🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3860

Re: Memory in TOpenDialog

#3860
From: Michel Leunen
Date: Sat, 22 Apr 2006 20:25
22 lines
1866 bytes
Jos� wrote:
> My program stores no data, but when I do OpenDialog1->Execute() it
> displays the directory I used in the previous execution of this
> program.

Look at TOpenDialog::InitialDir.
According to the help file:
"If no value is assigned to InitialDir, or if the specified directory 
does not exist, the initial directory is controlled by the global 
ForceCurrentDirectory variable. If ForceCurrentDirectory is true, the 
dialog opens with the current working directory displayed. Otherwise, 
the dialog opens with either the current working directory or the My 
Documents directory, depending on the version of Windows."

Michel
-- 
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
Technical Details
Message-ID: <444a90ba$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <be3l42lps235eq260mon24b54pdujv70tm@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,874003eaa06d78a5
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII
Date: Sat, 22 Apr 2006 22:25:52 +0200
From: Michel Leunen <nospam@noreply.please>
Organization: www.leunen.com
User-Agent: Thunderbird 1.5.0.2 (Windows/20060308)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Memory in TOpenDialog
References: <be3l42lps235eq260mon24b54pdujv70tm@4ax.com>
In-Reply-To: <be3l42lps235eq260mon24b54pdujv70tm@4ax.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
NNTP-Posting-Host: 81.247.74.56
Message-ID: <444a90ba$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1145737402 81.247.74.56 (22 Apr 2006 13:23:22 -0700)
Lines: 22
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!news-out2.kabelfoon.nl!newsfeed.kabelfoon.nl!bandi.nntp.kabelfoon.nl!newsfeed.freenet.de!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail