[08 Nov 2008] ARexx problem and question
Posted: Sat Jun 13, 2020 5:32 pm
Note: This is an archived post that was originally sent to the Hollywood mailing list on Sat, 08 Nov 2008 00:40:30 +0100
Hi there,
I never paid much attention to ARexx, but while finishing and polishing the work for the Hollywood add-on for Cubic IDE in the last couple of days I recognized that ARexx is really nice.
First, I have a problem with the example that is given in the Hollywood guide for CreateRexxPort(): I just copied and pasted both source codes and when I run the programs, I get the following error: ARexx:
And Hollywood's error message is:
But some commands seem to be executed, as the HW debug window attached to this mail shows.
As I said, I changed nothing in the source code. So, is the example wrong?
Then I wonder if it is possible to send the value of an ARexx variable to Hollywood? I image the following (bases on the ARexx source code of the example:
But unfortunately this doesn't work. The HW debug output window notifies that there was send sth to it, but it only says "DUMMYFUNC_1 called with 1 argument(s); Argument 1: 1" So the value of WORD is interpreted as "1", but it is a string.
Any ideas how I can send the correct value would be highly appreciated. 
Thanks a lot in advance, greetings Micha
Hi there,
I never paid much attention to ARexx, but while finishing and polishing the work for the Hollywood add-on for Cubic IDE in the last couple of days I recognized that ARexx is really nice.
First, I have a problem with the example that is given in the Hollywood guide for CreateRexxPort(): I just copied and pasted both source codes and when I run the programs, I get the following error: ARexx:
Code: Select all
+++ Error 13 in line 14: Host environment not found
Command return 10/13: Host environment not found
Code: Select all
Tablefield 1 was not initialized
File: arexxtest.hws (line: 12 - in function: p_eventfunc)
As I said, I changed nothing in the source code. So, is the example wrong?
Then I wonder if it is possible to send the value of an ARexx variable to Hollywood? I image the following (bases on the ARexx source code of the example:
Code: Select all
OPTIONS RESULTS
'QUERY WORD' /* command of Cubic IDE */
WORD = RESULT /* save the result to the var WORD */
ADDRESS MY_COOL_REXX_PORT_123
/* now send some commands from Rexx to Hollywood and watch the debug
output */
DummyFunc_1 WORD /* send the value of the var WORD to Hollywood */
Thanks a lot in advance, greetings Micha