[futurebasic] Re: [FB] Array to resource?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : December 2000 : Group Archive : Group : All Groups

From: Heather Donahue <heatherd@...>
Date: Sun, 31 Dec 2000 02:45:16 -0800
At 9:28 AM +0100 on 12/31/00, Hans van Maanen wrote:


>Hi all
>
>What am I doing wrong here?
>I want to put an array of 101 doubles in a resource for quick 
>reference in my resource file q.r as resource "Facs", nr 128.
>
>Somehow, the resH does not get written into the resource file after closing.
>The resource is there in memory, as resH2 shows (it fills in the 
>first eleven doubles), but after quitting the program, the file q.r 
>does not contain my new resource. Or is there something wrong with 
>CHANGEDRESOURCE or WRITERESOURCE?

Nothing wrong really.  Build your application, run it and then check 
the resource fork of your application. The resource is in there.

If you really want to save it to a separate resource file you'll have 
to open that resource file and then (I think) you can switch your 
resource file temporarily while you write your data.  Then switch 
back your your normal resource file.  Get a ref num for the file, use:

FN CurResFile to get your present resfile and UseResFile to change to 
the new file.

Heather