ErrorMessageHELP!
4 messages in this thread
I'm trying to learn the AREXX language supplied with version 2.04 AMIGA
DOS. I've only been able to get as far as the first tutorial in the OS
manual. (10-10 AREXX). I carefully typed in the example given and then
tried to run it as instructed on page (10-13 AREXX). Instead of getting
the expected output I received an ERROR message:
" +++ERROR 15 in line 4:Function not found"
" COMMAND RETURNED 10/15:Function no found"
The line in question was entered:
"then exit 20"
I have checked to see if the appropriate function libraries have been
installed, from what I can tell all is in order. I have also checked to
insure that the required cammands for AREXX are present in my
Startup-Sequence, they are. I'm probably overlooking something simple.
Can you give me any sugestions. I really need to get this working for
me.
Sincerely,
Kapryan Kennedy
As nearly as I can tell, the error occured on line 3….
The command was written inside quote marks for some reason, and it should
not have been….
Try:
if ~open('console','con:0/0/640/200/RexxWindow/Close','w'
)
It should now work
Bill, K3OZM
On AutoPilot
Bill,
Thanks for the solution to my problem. The first tutorial works as
expected. I was right, it was something simple. However I probably
wouldn't have figured that one out on my own. I guess that when a software
tutorial instructs me to enter "the information exactly as it is shown" I
just assume that they took the trouble to make sure that the information
was correct. Its happened to me so many times that I should no better.
Since I haven't gone that far in my research yet; What do the quotation
marks do in AREXX? What is their proper function? I know that I'm going
to be paranoid about quotation marks in AREXX for a while. At least until
the next problem. Thank-you!
Kapryan Kennedy
Kapryan,
In most cases, ARexx commands expect to see a variable as an argument.
Using quote marks allows you to use a text string. In a few cases,
particularly the ADDRESS COMMAND directions, the quotes allow the ARexx
expression to work on a standard (AmigaDOS) command.
For example…..
If you enter a = 'hello' then
say a or say 'hello' do the same thing.
if you use ….
address command 'copy df0:file df1:'
then ARexx lets the computer execute the AmigaDOS copy command.
When the string is set off with quotation marks, ARexx does not see the
expression as a valid ARexx command.
Bill, K3OZM
On AutoPilot