Article View: borland.public.cppbuilder.nativeapi
Article #12851Re: ParamStr() extraction
From: Remy Lebeau (TeamB)
Date: Sun, 16 Nov 2003 23:33
Date: Sun, 16 Nov 2003 23:33
16 lines
1410 bytes
1410 bytes
"Conny H๏ฟฝkansson" <conny@allimac.se> wrote in message
news:3fb7fde1@newsgroups.borland.com...
> Is there a _simple_ way of extracting only the filename from ParamStr() ?
Simply provide the index of the filename, and ParamStr() will return is.
For example, if the filename is passed as the first parameter, then use
index 1:
AnsiString filename = ParamStr(1);
Use ParamCount() to know if any parameters were passed to begin with.
Gambit
Technical Details
Message-ID:
<3fb80881$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fb7fde1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10cc67,470da9c3a4dba621 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-16 15:39:11 PST From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fb7fde1@newsgroups.borland.com> Subject: Re: ParamStr() extraction Date: Sun, 16 Nov 2003 15:33:39 -0800 Lines: 18 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 67.22.137.149 Message-ID: <3fb80881$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1069025409 67.22.137.149 (16 Nov 2003 15:30:09 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail