[futurebasic] Re: [FB] Program conversion

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Mon, 28 Jan 2008 12:09:35 +0100
Bob Bryce a crit :
> In response to my question about DEF BLOCKFILL below
> Jay Reeve suggested using sizeof(gMT) or sizeof(MTInfo)
> Thanks Jay; works nicely.
> 
> //LOCAL FN BlankMTRecord
> 'DEF BLOCKFILL (@gMT, _MT, 0)
> blockzero( @gMT, sizeof(gMT) )
>  END FN
> 
> This only works if _MT form my original program is replaced with  something
> like "26." However this only erases the font name in the first field.
> I want to erase ALL fields; MTfontName$, MTfontSize$, MTStyleName$
> MTStyleNumber$ ... in their respective fields.
> 
> What can I use in place of _MT?? MTInfo doesn't work here either.
> sizeof( gMT ) or sizeof( MTinfo )--either will work if you've dimmed  
> gMT as MTinfo.
> 

Bob,

I'm not sure I have totally understood what was the problem, but I 
suspect that what you need is to replace the following declaration:
_MT = 26
with:
_MT = sizeof( MTInfo )


Alain