[futurebasic] Re: [FB] Questions about Turovich's code

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

From: Jay Reeve <jayreeve@...>
Date: Sun, 5 Sep 2004 11:56:32 -0500
On Sunday, September 5, 2004, at 11:26  AM, Richard Goodman wrote:

> Here's a second question:
> Sometimes I see rectangle records dimmed as follows:
>
> DIM myRect.8
>
> Other times:
>
> DIM myRect;8
>
> How does one determine whether to use a period or a semicolon?

Richard,

In this case, the result is effectively the same. MyRect.8 tells the 
compiler to create a variable of undefined type having 8 bytes. 
MyRect;8 tells it to create a var recognized by FB as a short integer, 
but allocate 8 bytes for it.

If you take SIZEOF(myRect) in both instances, the first should return 
8, the second 2. Other vars are precluded from occupying those other 6 
bytes in the second case, though, so it's just as safe to use.

Take your pick.

  e-e
  =J= a  y
   "

--
To unsubscribe, send ANY message to: futurebasic-unsubscribe@...