Article View: borland.public.cppbuilder.nativeapi
Article #9784Re: CommandLine Parameter to own Application...
From: Oren Halvani
Date: Mon, 07 Jun 2004 23:55
Date: Mon, 07 Jun 2004 23:55
13 lines
1161 bytes
1161 bytes
i found a better and much shorter solution:
__fastcall TMyApp::TMyApp(TComponent* Owner) : TForm(Owner)
{
if(ParamCount() == 1)
{
RichEdit1->Lines->LoadFromFile(ParamStr(1)); // just grab the
fileparameter..
}
}
Oren
Technical Details
Message-ID:
<40c50020@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<40c49e06@newsgroups.borland.com> <40c4b952$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,e90b072bab983bf1 X-Google-Attributes: gid10cc67,public Reply-To: "Oren Halvani" <NoSpam@fdtd.com> From: "Oren Halvani" <NoSpam@fdtd.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <40c49e06@newsgroups.borland.com> <40c4b952$1@newsgroups.borland.com> Subject: Re: CommandLine Parameter to own Application... Date: Tue, 8 Jun 2004 01:55:22 +0200 Lines: 15 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 217.234.127.11 Message-ID: <40c50020@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1086652448 217.234.127.11 (7 Jun 2004 16:54:08 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news.linkpendium.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail