[futurebasic] Re: [FB] DCOD Qs

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1999 : Group Archive : Group : All Groups

From: Mark Goodes <wave@...>
Date: Mon, 10 May 1999 20:13:44 -0400
>What are the correct steps to include strings in a DCOD ??
>I want them as a STR# resource
>ie:
>thetext$ = "Some text"
>
As long as you have the _strResource compile option specified then the
above should work fine.  Look in the Project Manager DCOD--there are
similar statements there.
The only time that the _strResource option doesn't work is when you play
with the registers on entry, but it doesn't sound like you're doing that.

>How do I clear the following record
>
>DIM RECORD myRec
>    DIM someInt%
>
>    blah blah blah
>
>DIM END RECORD _myRecSz
>
>I'm not sure that:
>DEF LONGBLOCKFILL (@myRec, _myRecSz, 0)
>works because macsBug reports heap corruption or block error but I'm not
>sure if the DEF LONGBLOCKFILL is the problem.
I use DEF BLOCKFILL with the same parameters and it seems to work fine.
You could try putting @myRec.someInt% in place of @myRec because sometimes
the compiler seems to get confused.

>DCODs are unknown territory
That's all I've been working with for the past few weeks.  There's not
really that much to them, as long as you avoid playing with the registers
unless absolutely necessary.
Mark


____________
wave (Toronto, Canada)