[futurebasic] Re: [FB] READ?WRITE RECORDs

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

From: Jay Reeve <jktr@...>
Date: Tue, 28 Sep 99 17:23:27 -0500
>Hi all. I managed to do this sort of thing a few years back, but guess I'm
>getting dumber with age. Can someone tell me what I'm doing wrong?
>
>Thanks,
>-Warren
>
>'READ/WRITE TEST
>WINDOW 1
>
>GLOBALS
>DIM RECORD appointmentsRec
>  DIM  6 dayt$
>  DIM  6 tyme$
>  DIM  4 ampm$
>  DIM 30 who$
>DIM END RECORD.appointmentsRec
>END GLOBALS
>
Warren,

You're not going to believe this, but changing  a "." to a "_" should fix 
it up. As in:
DIM END RECORD_appointmentsRec

When you use the dot, no memory is allocated, it just defines the record 
type. So when you use appointmentsRec in your local fn, it becomes a 
local integer var. With the underscore, you'll get your 52 byte global 
record allocated.

 0"0
 =J= a  y
  "