[futurebasic] Re: [FB] How to declare (dim) and init an array at once

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2001 : Group Archive : Group : All Groups

From: jonathan <jonnnathan@...>
Date: Mon, 29 Oct 2001 10:40:01 +0100
le 2001/10/29 8:33, Osamu Shigematsu à shige@... a écrit :

> I wonder if how can I declare and init an array at once.
> In FB2, I used following code.
> 
> 
> GOTO "MAIN"
> "MyDataPtr"
> ` DC.W 1,2,3,4,5,6,7,8
> 
> "MAIN"
> XREF myArray%(8)
> myArray& = LINE "MyDataPtr"
> 
> In C, we can do this simply:
> 
> short myArray[8] = {1,2,3,4,5,6,7,8};
> 
> Is there any cool way in FB^3?

i must say that this is one thing in the 'c' style [javascript,php] that i
do find useful.

can live without though.

:-j