My thestack.rex is executed by linesize.rex from the command window and
does:
--- clip ---
x=rxqueue('Delete','THE')
the=rxqueue('CREATE','THE')
old=rxqueue('SET','THE')
call directory 'C:\MyTHEstuff'
parse arg file
If pos(';',file)>0 then do
parse arg file ';' remainder
do while pos(';',remainder)>0
parse var remainder more ';' remainder
queue more
End
if remainder\='' then queue remainder
End
"C:\THE\THEc.exe -a stack_active" , /* Set the DOSTACK? eDITV flag */
"-p c:\mythestuff\profile.the" file
--- eclip ---
to get THE started with a stack. The last thing done by profile.the is
DOSTACK.THE, the pertinent part is:
---clip---
oldq=rxqueue('Get')
'msg On entry, the qname is:' oldq
If oldq\='THE' Then Do
Call rxqueue 'SET','THE'
'msg So it has been set to: THE'
End
'msg Anything there?'
Call doq 'THE'
Call rxqueue 'SET','SESSION'
'msg How about in' rxqueue('Get')
Call doq 'SESSION'
Call rxqueue 'SET','THE'
'msg qname set back to:' rxqueue('Get')
---eclip---
and the stacked commands get executed by *dostack* from the THE qname as
intended. However, further stack testing from the THE command line
indicates that the THE queuename has been set back to SESSION!
Is this working as designed? The documentation doesn't give any hint of
this behavior :-(
Les
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Oorexx-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-users