🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Filename problem

#2033
From: Pat
Date: Fri, 11 May 2007 17:56
62 lines
2462 bytes
Hey thanks Rob,

That really helps!

Pat


Robert G. Hoover wrote:
> Hi Pat,
> 
> I have the same problem. You gotta know (or guess) where to look.
> 
> Look up "SysUtils" in the BCB help files. There are a LOT of goodies in there...
> 
> ExtractFilePath
> ChangeFileExt
> ExtractRelativePath
> ExcludeTrailingPathDelimiter
> 
> ...just to name a few. These little gems save me a LOT of time!
> 
> Rob
> 
> 
> 
> Pat wrote:
>> Thanks Rob,
>>
>> That is exactly what I was looking for! Just as a side note I looked
>> high and low for this answer, all of my reference books and on line help
>> and so on.  10 seconds with someone who know something......
>>
>> Thank you ever so much
>> Pat
>>
>> Robert G. Hoover wrote:
>>> Is this what you're asking for or did I misunderstand your question...?
>>>
>>> Edit1->Text = ExtractFileName(OpenDialog->FileName);
>>>
>>>
>>> Rob
>>>
>>>
>>>
>>> Pat wrote:
>>>> Hi,
>>>>
>>>> Is there any way to extract the filename from an OpenDialog?  I would
>>>> like to be able to put only the filename and extension into an Edit
>>>> box.  When I try to use:
>>>>
>>>> Edit1->Text = OpenDialog->FileName;
>>>>
>>>> I get the pathh and all listed in the Edit box. I know that this
>>>> should be easily done it's just that I can't ssem to find an answer
>>>> to my searches.
>>>>
>>>> Thank you for your kind help.
>>>>
>>>> Pat
>>>>
Technical Details
Message-ID: <4644ae47$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <46434861@newsgroups.borland.com> <46434c02$1@newsgroups.borland.com> <46435299$1@newsgroups.borland.com> <4643587a@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,57cef0fbcdf7b110
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Fri, 11 May 2007 11:56:28 -0600
From: Pat <pclancy@sasktel.net>
User-Agent: Thunderbird 1.5.0.8 (Windows/20061025)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Filename problem
References: <46434861@newsgroups.borland.com> <46434c02$1@newsgroups.borland.com> <46435299$1@newsgroups.borland.com> <4643587a@newsgroups.borland.com>
In-Reply-To: <4643587a@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 64.201.197.13
Message-ID: <4644ae47$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1178906183 64.201.197.13 (11 May 2007 10:56:23 -0700)
Lines: 62
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!proxad.net!213.200.89.82.MISMATCH!tiscali!newsfeed1.ip.tiscali.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail