Long Variable Name as Array Element

Kenneth Brody kenbrody at bestweb.net
Wed Aug 18 08:45:01 PDT 2004


Scott Walker wrote:
> 
> >
> > Scott Walker wrote:
> > [...]
> > > Are you running the code in rreport?
> >
> > I've been using rclerk, since that is what you said you were using:
> >
> >     > Can you use a Long Variable name as an array element.
> >     >
> >     > I can't seem to on 5.0.13 rclerk.
> >
> > [...]
> >
> 
> DUHHHHHHHHH!
> 
> I am really sorry about that....I kept rereading my posts before sending
> them, trying to get every detail correct, and I got what is possibly the
> most important item of info wrong.
> 
> I just tried it with rclerk and it works fine, even with the array
> mapped to dummy variables.
> 
> I is only in rreport and/or dreport, with the array mapped to dummy
> variables, that it bombs.

The following works fine for me in rreport 5.0.13R9:

rreport test -fp array2 -p \temp\out -a

==========
::dim Category_Sell[7](12,,2)aa:
::declare local Counter(1,.0):
::Counter="1":
::cr(1,.0)="1":
::mesgbox "About to assign via 'cr'":
::Category_Sell[cr]=Category_Sell[cr]:
::mesgbox "Done.  About to assign via 'counter'":
::Category_Sell[Counter]=Category_Sell[Counter]:
::mesgbox "Done.":
::end:
==========

-- 
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody        | www.hvcomputer.com |                             |
| kenbrody/at\spamcop.net | www.fptech.com     | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+


More information about the Filepro-list mailing list