#AmigaBasic & ACE
Ken
> I do have one question, I program Basic obviously…also AREXX I did do a
little Assembly and Machine on the 64&128. Anyway, the > question is basically
this, is there an equivalent to the ADDRESS COMMAND function of AREXX in ACE?
Is there a way I can invoke > dos commands and pass args their way I guess is
what I'm trying to ask. It's not immediately important but I'll be needing to
know for a > future project.
Yes. I don't do much with Arexx, but read on. 🙂
If what you mean is "can I execute a DOS program with arguments?" then you can
do this:
SYSTEM cmd$
eg.
SYSTEM "c:dir"
or
theCmd$ = "c:dir"
theArgs$ = "ram:"
SYSTEM theCmd$ + " " + theArgs$
ie. you can build up the final command string and then use SYSTEM. See ref.doc
for more about this.
But, if you mean "can I call a dos.library function with arguments?" then you
have to use something like the following:
'..Not strictly necessary for dos.library (and some others) in ACE
LIBRARY "dos.library"
DECLARE FUNCTION Delay(LONGINT ticks) LIBRARY
Delay(100)
LIBRARY CLOSE '..also not necessary for dos.library
or
DECLARE FUNCTION Delay(LONGINT ticks) EXTERNAL
Delay(100)
which uses an ami.lib stub function to call the shared library function
Delay().
Let me know if you need more help on this.
David