[futurebasic] 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: Osamu Shigematsu <shige@...>
Date: Mon, 29 Oct 2001 16:33:34 +0900
Hello, all.

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?

Thanks.