[futurebasic] Re: [FB] List of variable types

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : November 2001 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Fri, 16 Nov 2001 20:51:29 +0100
Paul Bruneau wrote:
> 
> Hi all-
> 
> Can someone point me to where I can find a complete list of all the
> types of variables available for use in FB?
> 
> I mean to use like this:
> 
> DIM myRect as RECT
> DIM myHnd as HANDLE
> DIM myPtr as POINTER TO RECT
> 
> I keep seeing new ones in sample code and I am wondering how many types
> I am missing.
> 
> Like, is there one for the PR record? Etc.
> 
Paul,

There is a list of common types in the Reference Manual at the DIM statement.
The other types are:
- Apple defined types: generally structures defined in the Universal
Headers. Unfortunately, not all the structures are declared in the
FB^3 header files. The most important have been translated to FB
records though.
- Aliased types: many variable types are merely aliases of another
basic type.
All those types are not listed anywhere in the FB doc, since
theoretically they are explained in the Apple documentation.
What you can do with FB^3 is to perform a search on the Header files
to see if a given type is recognized. If not, you can define it
whether with the BEGIN RECORD/END RECORD structure or the #DEFINE statement.


-- 

Cheers

Alain

-----------------------------------------------------
FB^3 in Europe:  http://euro.futurebasic.com/
FB II Pouch:     http://www.pixmix.com/FB/outils.html
-----------------------------------------------------