フォーラム: Forum of Decimal BASIC (スレッド #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 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする

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 への返信×

Wiki文法は使えません
ログインしていません。投稿を区別するために投稿者のニックネームをつけてください(ニックネームの一意性は保証されません。全く別の人も同じ名前を利用することが可能ですので本人であることの特定には利用できません。本人であることを保証したい場合にはログインして投稿を行なってください)。 ログインする