Groups > Superbase > Superbase 2 programming > Re: Multi Arrays - DIM




Re: Multi Arrays - DIM

Re: Multi Arrays - DIM
Wed, 15 Feb 2006 16:25:44 -050
On Wed, 15 Feb 2006 14:26:39 -0500, Axel H <hahnheuser@optusnet.com.au>
wrote:

> This is probably an easy one but i can't seem to find any references to it
> in the sb2 manual.  I need to create one array with two text elements
which
> are currently stored in 2 arrays eg:
>
> DIM oxk1$(10) : DIM oxk2$(10)
> oxk1$(k%) = Key_no.File02 : oxk2$(k%) = Key_description.File02
>
> I would have thought the syntax was:
>
> DIM oxk1$(10),(10)
> oxk1$(k%) = Key_no.File02,Key_description.File02
>
> This doesn't work.  Can anyone assist please.
>
> Thanks, Axel H.
>
>
>

Multidemensional arrays work like this:

  DIM oxk1$(10,10)
  oxk1$(k1%,k2%) = Key_no.File02
  oxk1$(k1%,k2% + 1) = Key_description.File02

Peter
-- 
Post Reply
Multi Arrays - DIM
Thu, 16 Feb 2006 05:26:39 +100
This is probably an easy one but i can't seem to find any references to it 
in the sb2 manual.  I need to create one array with two text elements which 
are currently stored in 2 arrays eg:

DIM oxk1$(10) : DIM oxk2$(10)
oxk1$(k%) = Key_no.File02 : oxk2$(k%) = Key_description.File02

I would have thought the syntax was:

DIM oxk1$(10),(10)
oxk1$(k%) = Key_no.File02,Key_description.File02

This doesn't work.  Can anyone assist please.

Thanks, Axel H. 

Post Reply
Re: Multi Arrays - DIM
Sat, 18 Feb 2006 16:44:48 +100
Thankyou Peter, this really helped me out.

Kind Regards
Axel H 

Post Reply
about | contact