On Wed, Nov 7, 2012 at 12:00 AM, Leslie Turriff <jlturr...@centurytel.net>wrote:

>         I'm writing a little routine to chop bits of information from
> URIs, which I
> have stored in an array.  When I try to parse an array element I get this:
>
>
> $bvdl file tempfile
>    146 *-* parse var URI[u] . classification
> REX0038E: Error 38 running /home/turriff/bin/bvdl line 146:  Invalid
> template
> or pattern
> REX0368E: Error 38.1:  Incorrect PARSE template detected at "["
> $rexx -V
> Open Object Rexx Version 4.1.2
> Build date: Aug 31 2012
> Addressing Mode: 64
>
>
>
>         Seems like this might be a bug?  The Command Reference says,
>
> "The name must be a symbol that is valid as a variable name, which means it
> cannot start with a period or a digit."
>
> Stem variables, which have imbedded "." work, so I would expect that
> collection elements would as well.  Not so?
>

parse var only works with a single variable reference.  A collection
reference is an expression, so you need to use the parse value form.

Rick

>
> Leslie
>
>
> ------------------------------------------------------------------------------
> LogMeIn Central: Instant, anywhere, Remote PC access and management.
> Stay in control, update software, and manage PCs from one command center
> Diagnose problems and improve visibility into emerging IT issues
> Automate, monitor and manage. Do more in less time with Central
> http://p.sf.net/sfu/logmein12331_d2d
> _______________________________________________
> Oorexx-users mailing list
> Oorexx-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/oorexx-users
>
------------------------------------------------------------------------------
LogMeIn Central: Instant, anywhere, Remote PC access and management.
Stay in control, update software, and manage PCs from one command center
Diagnose problems and improve visibility into emerging IT issues
Automate, monitor and manage. Do more in less time with Central
http://p.sf.net/sfu/logmein12331_d2d
_______________________________________________
Oorexx-users mailing list
Oorexx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oorexx-users

Reply via email to