Turbo Pascal's Run command runs the program loaded in memory. Can the development environment run also programs that take command line arguments, without compiling to a file and exiting to CCP? Is there any way of doing this under CP/M-80 or CP/M-86,not M/PM or Concurrent CP/M?
ParamCount and ParamStr functions work in programs that are compiled to COM, and in programs run from memory. Use the P command in the IDE.
I think (haven't checked) that this was introduced in Turbo Pascal 3.
The command P may have been introduced in a later version as I can't find it in the Turbo Pascal 3 IDE.
On Saturday, October 22, 2022 at 9:20:06 PM UTC+2, Paolo Amoroso wrote:programs, for example the one under development.
The command P may have been introduced in a later version as I can't find it in the Turbo Pascal 3 IDE.I stand corrected, Fridtjof is right. Turbo Pascal 3 does support the "command line Parameter" under "compiler Options" but only under CP/M-86. The CP/M-80 version of the IDE provides the equivalent "eXecute" main menu command for running arbitrary
The CP/M-80 version of the IDE provides the equivalent "eXecute" main menu command for running arbitrary programs, for example the one under development.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (3 / 13) |
| Uptime: | 156:30:50 |
| Calls: | 12,093 |
| Calls today: | 1 |
| Files: | 15,000 |
| Messages: | 6,517,738 |