论坛: Forum of Decimal BASIC (Thread #48111)

Get command line? (2023-01-23 04:00 by toml12953 #93485)

Is there a way to get the command line in the compiler and Paract versions of Decimal BASIC? It would be handy for my HEX2BIN program to be able to call it like this:

HEX2BIN TEST

rather than having to input the file name during the program run.

I'd like the program to get the word TEST from the command line.

回复到 #93485×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录

Re: Get command line? (2023-01-23 09:43 by SHIRAISHI Kazuo #93486)

Use a PROGRAM statement.
For Example,

PROGRAM MyTest(n, s$)
PRINT n
PRINT s$
END

In the command line, type
NONAME.EXE 123 ABC



回复到 #93485

回复到 #93486×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) 登录