Long Variable Name as Array Element#
Kenneth Brody
kenbrody at bestweb.net
Tue Aug 17 08:11:07 PDT 2004
Scott Walker wrote:
[...]
> > > Cust_Type=order_file(82) 'Will be a value of 1 - 6
> >
> > I would insert:
> >
> > mesgbox "Cust_Type = '" & Cust_Type & "'"
> >
> > What does it show?
What does the above line show?
> >
> > > Redhat_Sell[Cust_Type]=Redhat_Sell[Cust_Type]+8
> > 'Add up Total
> > > Sales for Customer Type
> > >
> > > The fourth line gives me a syntax error when I run it. Says:
> > >
> > > "A filepro error has occurred"
> > >
> > > "Array Index Out of Range: dim redhat_sell(6) -- Index: 0"
[...]
> > Assuming that orderfile(82) is the same in both cases, both
> > should work the same way and give the same results.
> >
>
> I agree, it either on should work but the one where I use the Long
> Variable for the array element fails...everytime. I just tried to use
> a Long_Variable with another array, and it also fails with a similar
> error message. I think something is broken.
>
> I'm forwarding this to fp tech support.
Without anyone else being able to duplicate it, I'm not sure what you
expect fpsupport to do.
Have you tried the suggestions people have posted, including mine about
adding a mesgbox showing what's actually in the variable?
--
+-------------------------+--------------------+-----------------------------+
| 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