[futurebasic] Re: Arrays don't work!

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : February 1998 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Mon, 23 Feb 1998 18:59:54 -0500
>>snip....
>>application-only statement.  This doesn't make sense.  Do you know if it's
>>possible to get arrays working?  I'm not that great at indexing memory
>>blocks by hand.
>>
>
>I'll try...  Would you send me a small snip of code where you think the
>problem is occuring?

This is an open request for anyone who can help.  The problem is that the
FB compiler won't allow arrays in a WDEF code resource that I'm writing.

It turns out that the snippet below compiles properly without the RESOURCES
statement, but as soon as I put the RESOURCES statement back in, I get the
array error message.  Here is a code snippet. (By the way, you don't need
to have the resource file available to see the error message.  If anyone
needs the file, you can use a copy of the "Windoid WDEF.rsrc" file in the
"WDEF Folder" inside the Examples folder.)

My WDEF's structure is copied from the WDEF that is supplied with FB.  Thus
the LONG FN and the use of a "global".

____________________________________________________________________
RESOURCES "","rsrcRSED","WDEF",4,"MyWindow"
COMPILE 0,_macsBugLabels_appendRes_dimmedVarsOnly
OUTPUT FILE "TestArray.rsrc"

DIM gTest&(10)

"Main"
LONG FN TestArray
 gTest&(1)=0
END FN

FN TestArray


____________
wave (Toronto, Canada)
Much better at "OOPS!" programming than OOP programming.