🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get the FileName without the path info when using OpenDialog1->FileName?

#14263
From: robertbienert gmx.net robertbien...
Date: Tue, 19 Aug 2003 17:13
25 lines
1968 bytes
Remy Lebeau (TeamB) schrieb:
> "Richard Yu" <richard@colorselector.com> wrote in message
> news:3f4122b1$1@newsgroups.borland.com...
> 
>>just like to get file name without the path info, how to do that ?
> 
> 
> Look at the VCL's ExtractFileName() function.

For more possibilities to split the hole filename see the C function 
fnsplit.

Yours,
-- 
Robert Bienert <robertbienert<AT>gmx.net>
[simply replace the <AT> with an @ and everything is alright]

Check also my free software at http://www.rbprogs.de.vu/

the daily fortune:

         "Darling," she whispered, "will you still love me after we are
married?"
         He considered this for a moment and then replied, "I think so.
I've always been especially fond of married women."
Technical Details
Message-ID: <3f425a9a@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news.maxwell.syr.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3f4122b1$1@newsgroups.borland.com> <3f41238b$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,772dc6d637ae795a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-08-19 10:43:09 PST
Date: Tue, 19 Aug 2003 19:13:18 +0200
From: "robertbienert<AT>gmx.net" <"robertbienert<AT>gmx.net">
User-Agent: Mozilla/5.0 (Windows; U; Win98; de-AT; rv:1.3.1) Gecko/20030425
X-Accept-Language: de, en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: How to get the FileName without the path info when using OpenDialog1->FileName?
References: <3f4122b1$1@newsgroups.borland.com> <3f41238b$1@newsgroups.borland.com>
In-Reply-To: <3f41238b$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 195.127.134.163
Message-ID: <3f425a9a@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1061313178 195.127.134.163 (19 Aug 2003 10:12:58 -0700)
Lines: 26
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!sn-xit-09!supernews.com!news.maxwell.syr.edu!kibo.news.demon.net!demon!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail