From: Paolo Germano <pgermano@...>
To: arexx@yahoogroups.com
Sent: Saturday, January 31, 2009 1:14:33 AM
Subject: [arexx] how to apply this ARexx command?
(I have already asked in the appropriate forums related to Ambient, the desktop
of MorphOS, and have received no reply....)
From a script I'm sending a command to the 'AMBIENT' host but I do not receive
the expected result.
I do not understand whether it is matter of pure Arexx technical programming or
something contextual to the host interaction .....
This command is not officially documented but I have found it and his
description from the public sources of Ambient project at SourceForge:
* Command:
* - ViewList
* Synopsis:
* - return view list into a stem
* Parameters:
* - STEM: stem name to store the result to
* Example:
* - ViewList views
* Result:
* - A stem var with the following fields:
* - stem.n: <id,name> pair
* - stem.count: list count
* RC:
* - 0 : Ok
* - 20: Syntax Error
with code:
---------
address 'AMBIENT'
ViewList views
say
RC
say views.count
say views.0
I have the results:
------------ ------
0
VIEWS.COUNT
VIEWS.0
so, return code says command was executed without errors but stem remains
uninitialized.
want to help me understand my arexx mistake in order to handle this task??
Thank folks,
paolo