Board index » delphi » Retrieving command line parameters in TP7 via CmdLine sysvar
Jesús Consuegr
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
|
Jesús Consuegr
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Retrieving command line parameters in TP7 via CmdLine sysvarI'm trying to get the parameters issued to my TP7 program via the system It should be inside the System Unit ... Thanks. |
Mike Copela
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarQuote> I'm trying to get the parameters issued to my TP7 program via the system |
Pedt Scrag
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <01bcf433$d0efb0d0$6d646480@pc01077>, =?iso- Quote>I'm trying to get the parameters issued to my TP7 program via the system If you want individual parameters then paramstr(x) will give you the x If you want to have all the parameters to your program in one string var ParString : string; Will put all the command line parameters into one string with a space In principle, is there uncertainty that |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <01bcf433$d0efb0d0$6d646480@pc01077>, QuoteJess Consuegra <jconsue...@redestb.es> wrote: cdmline=^string; cmdline:=ptr(prefixseg,128); and then use cmdline^ Osmo Quote
|
Frank Peel
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarJess Consuegra <jconsue...@redestb.es> wrote in article Quote> I'm trying to get the parameters issued to my TP7 program via the system Tried compiling Begin Writeln(CmdLine); End. and it worked when the target In DOS you'll have to use the string variable at prefixseg:$80, but be sure Type pString = ^String; { you probably have this already } That works in real & protected modes Frank |
Jesús Consuegr
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarThanks to Osmo and Pedt. That was I needed. |
Dr John Stockto
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <01bcf433$d0efb0d0$6d646480@pc01077> of Tue, 18 Nov 1997 Quote<jconsue...@redestb.es> wrote: -- |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <5TvSPIANphc0E...@pedt.demon.co.uk>, Quote
four spaces, like: Find " " *.* How would your solution work? If one needs the command line one needs the command line and not some Osmo |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <01bcf47e$9c229520$LocalHost@fp>, QuoteFrank Peelo <fpe...@indigo.ie> wrote: paramcount inspect the same area every time they are called. So if you trust paramstr you should trust the command line. The feature that paramcount and paramstr inspect the area can be sued to Osmo |
Timo Sal
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvar 126643 Nov 14 1997 ftp://garbo.uwasa.fi/pc/link/tsfaqp.zip 18. ***** A: ParamCount and ParamStr are for parsed parts of the command line All the best, Timo .................................................................... Spam foiling in effect. My email filter autoresponder will return a |
Osmo Ronkan
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <656043$...@majakka.uwasa.fi>, QuoteTimo Salmi <t...@majakka.uwasa.fi> wrote: low level languages like Assembler to HLL like Pascal. Osmo |
Timo Sal
![]() Delphi Developer |
Wed, 18 Jun 1902 08:00:00 GMT
Re:Retrieving command line parameters in TP7 via CmdLine sysvarIn article <656li3$...@kruuna.Helsinki.FI>, QuoteOsmo Ronkanen <ronka...@cc.helsinki.fi> wrote: Quote:Timo Salmi <t...@majakka.uwasa.fi> wrote: :This must be a joke. One should not generalize principles learned from Osmo, don't worry. I would not dream of stooping to a low level in All the best, Timo (aka Perfesser Pundit in news:rec.humor) .................................................................... Spam foiling in effect. My email filter autoresponder will return a |
1. Retrieving a command line parameter
2. PAssing a variable to TP7 through the command line
3. Turning TSR ON/OFF via command line
6. Register a Database via the command line?
7. connecting via command line
8. testing command line parameters with paramstr