[08 Nov 2008] ARexx problem and question

Contains all messages from the Hollywood mailing list between 01/2006 and 08/2012
Locked
User avatar
Clyde
Posts: 351
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

[08 Nov 2008] ARexx problem and question

Post by Clyde »

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:

Code: Select all

+++ Error 13 in line 14: Host environment not found
Command return 10/13: Host environment not found
And Hollywood's error message is:

Code: Select all

Tablefield 1 was not initialized
File: arexxtest.hws (line: 12 - in function: p_eventfunc)
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:

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 */
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
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
User avatar
airsoftsoftwair
Posts: 5834
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

[10 Nov 2008] Re: ARexx problem and question

Post by airsoftsoftwair »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Mon, 10 Nov 2008 00:30:05 +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: +++ Error 13 in line 14: Host environment not found Command return 10/13: Host environment not found

And Hollywood's error message is: Tablefield 1 was not initialized File: arexxtest.hws (line: 12 - in function: p_eventfunc)
Hmm... did you start RexxMast first? RexxMast must run before anything can be done with Rexx...
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?
No, works here :)
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 */
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. :-)
Unfortunately, I'm no Rexx expert but you should be able to get it work with the example provided which is definitely working (just tried it here). Rexx is a little bit picky in certain regards, e.g. first line of a script MUST be comment or it won't work. There are other issues, too, which I was very aware of when I did implement ARexx support. But that was back in 2006 and I've forgotten most of it by now :) But everything you want is supported by Hollywood. I spent lots of brains designing the ARexx stuff. So just check out the example in the doc & there's another that can be started from the GUI!
User avatar
Clyde
Posts: 351
Joined: Sun Feb 14, 2010 12:38 pm
Location: Dresden / Germany

[14 Nov 2008] Re: ARexx problem and question

Post by Clyde »

Note: This is an archived post that was originally sent to the Hollywood mailing list on Fri, 14 Nov 2008 15:24:20 +0100

Hi there!
Hmm... did you start RexxMast first? RexxMast must run before anything can be done with Rexx...
Yessir, RexxMast is up and running. Otherwise the first Dummy_func wouldn't have been successfully executed, I guess.
No, works here :)
Really strange. I tried a lot with the example and it becomes obviously that ARexx or HW has problems with more than one argument, in detail with the space sign between the arguments ...
Unfortunately, I'm no Rexx expert but you should be able to get it work with [... snip ...]
Not a problem, thanks for you help either! Finally I solved the problem, so my Hollywood add on for Cubic will come with a really cool and helpful additional feature now. :-)

Cheers, Micha
Currently using: Hollywood 9 with Windows IDE and Hollywood 9 with Visual Studio Code and hw4vsc
Locked