🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Filename problem

#2015
From: Pat
Date: Thu, 10 May 2007 16:29
14 lines
1202 bytes
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: <46434861@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,57cef0fbcdf7b110,start
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Pat" <pclancy@sasktel.net>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Filename problem
Date: Thu, 10 May 2007 10:29:23 -0600
Lines: 16
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.3028
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028
NNTP-Posting-Host: 64.201.197.13
Message-ID: <46434861@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1178814561 64.201.197.13 (10 May 2007 09:29:21 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news2.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail