Long Variable Name as Array Element#

Scott Walker scottw1 at alltel.net
Tue Aug 17 18:49:53 PDT 2004



> -----Original Message-----
> From: Kenneth Brody [mailto:kenbrody at bestweb.net] 
> Sent: Tuesday, August 17, 2004 11:24 AM
> To: Scott Walker
> Cc: Filepro List - No spam
> Subject: Re: Long Variable Name as Array Element#
> 
> 
> 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]
> 

It works exactly as you would expect it to.

Regards,


Scott



> 
> 




More information about the Filepro-list mailing list