Long Variable Name as Array Element#

Kenneth Brody kenbrody at bestweb.net
Tue Aug 17 08:24:22 PDT 2004


Scott Walkker wrote:
[...]
> > 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.

What does this very simple test do on your system?

    dim array[3](10,*)
    array["1"] = "one"
    array["2"] = "two"
    array["3"] = "three"
    declare subscript(1,.0)
    subscript = "2"
    mesgbox "array[" & subscript & "] = " & array[subscript]

-- 
+-------------------------+--------------------+-----------------------------+
| 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