Article View: comp.lang.pascal.borland
Article #141Re: paramstr longer than 127 characters. Is it possible?
From: Dr John Stockton
Date: Mon, 28 Jan 2002 22:05
Date: Mon, 28 Jan 2002 22:05
41 lines
3108 bytes
3108 bytes
JRS: In article <91A4ABE38qwerty@193.193.193.102>, seen in news:comp.la ng.pascal.borland,comp.lang.pascal.misc,borland.public.turbopascal, Andy <andrew@SPAMNOyahoo.com> wrote at Mon, 28 Jan 2002 14:32:20 :- >Hello, > >I write a program, which must works in batch mode - user select some files >in explorer, drag'em to the program and program starts to calculate every >separate input. Code looks like below: > >... >for i :=1 to ParamCount do > begin > execute program for paramstr(i); > end; >... > >This works OK untill paramstr is not longer that 127 characters. Same code >compilled with free pascal seems has two times longer limit. >Is there a way to process any number of input files, without limits? Borland newsgroups dislike crossposting - see sig below. Borland newsgroups have their own proper server - see sig below - the Borland experts will not see your post; nor this one. This seems off-topic for at least one of c.l.p.borland & c.l.p.misc; did you not read the regular informative posts? AIUI, the parameter list is transferred in the upper half of the 256-byte PSP, at least for 16-bit programs such as TP/BP generate. Not, of course, that you have actually said which Pascal you are trying. I would code such that if a parameter starts with '@', the rest of it is the name of a file from which further parameters are now read. -- � John Stockton, Surrey, UK. jrs@merlyn.demon.co.uk Turnpike v4.00 MIME. � Web <URL: http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links. For news:borland.*, use their server newsgroups.borland.com ; but first read Guidelines <URL:http://www.borland.com/newsgroups/guide.html> very carefully.
Technical Details
Message-ID:
<0EOx9lGGtcV8EwG2@merlyn.demon.co.uk>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!news.demon.co.uk!demon!merlyn.demon.co.uk!spamReferences:
<91A4ABE38qwerty@193.193.193.102>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 111659,4381055370f4511c X-Google-Attributes: gid111659,public X-Google-Thread: 10261c,4381055370f4511c X-Google-Attributes: gid10261c,public X-Google-Thread: 108ebd,4381055370f4511c X-Google-Attributes: gid108ebd,public X-Google-ArrivalTime: 2002-01-28 15:26:02 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!dispose.news.demon.net!news.demon.co.uk!demon!merlyn.demon.co.uk!spam From: Dr John Stockton <spam@merlyn.demon.co.uk> Newsgroups: comp.lang.pascal.borland,comp.lang.pascal.misc,borland.public.turbopascal Subject: Re: paramstr longer than 127 characters. Is it possible? Followup-To: comp.lang.pascal.borland Date: Mon, 28 Jan 2002 22:05:58 +0000 Organization: Home, 'Surrey', UK Message-ID: <0EOx9lGGtcV8EwG2@merlyn.demon.co.uk> References: <91A4ABE38qwerty@193.193.193.102> Reply-To: Dr John Stockton <reply@merlyn.demon.co.uk> NNTP-Posting-Host: merlyn.demon.co.uk X-NNTP-Posting-Host: merlyn.demon.co.uk:158.152.233.145 X-Trace: news.demon.co.uk 1012260325 nnrp-10:17103 NO-IDENT merlyn.demon.co.uk:158.152.233.145 X-Complaints-To: abuse@demon.net MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain;charset=iso-8859-1 X-Newsreader: Turnpike (32) Version 4.00 <FaPHOaas0ellLCXbR0oIxSiVaE> Lines: 41