David, You might want to look at the SysDumpVariables code for an example of how to use RXSHV_NEXTV...that's how it does its magic. But essentially, the first time you call it, an iteration set is created and it will give you the "next" variable on each call. The last variable of the set is marked with a special return code (RXSHV_LASTV, or something like that). Any other RexxVariablePool call will reset the iterator back to the beginning, so you can't interleave things. Also, if you return from the call, everything gets reset too, so all of your testing will need to be performed in one call.
The private variables you can access are: "VERSION" -- returns the version string (same string used with PARSE VERSION). "QUENAME" -- return the name of the current queue. "SOURCE" -- return the string used by PARSE SOURCE "PARM" - returns the count of arguments in the current Rexx context (NOT the external function that might have just been called, but rather the Rexx code calling the current function") "PARMn" -- returns the nth PARM for the calling context. Rick On Wed, Oct 8, 2008 at 11:49 AM, David Ashley <[EMAIL PROTECTED]> wrote: > Rick - > > This mostly for you. I have never used the RexxVariablePool RXSHV_NEXTV > and RXSHV_PRIV function codes before so I have some questions. > > 1. Just how do you start using the RXSHV_NEXTV function? Does the first > call to that function start iterating through the variable pool? What > happens when you intersperse other variable pool functions between > RXSHV_NEXTV calls? > > 2. I have no idea what kind of information (variable names) are > available via the RXSHV_PRIV function. Can you give me a hint? > > David Ashley > ooRexx Team > > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Oorexx-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/oorexx-devel > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Oorexx-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/oorexx-devel
