Re: Can types be global
- Posted by Juergen Luethje <j.lue at gmx.de> Nov 29, 2006
- 566 views
don cole wrote: > This works (in the same file). > > type caps(integer x) > return x >= 'A' and x<= 'Z' > end type > > This doesn't in an incude file. > > global type caps(integer x) > return x >= 'A' and x<= 'Z' > end type > > Why whats wrong? > > Don Cole Of course can types be global. A user-defined type is just a single-parameter function that returns TRUE or FALSE. Look e.g. here <http://www.rapideuphoria.com/type.zip> for a file that contains a collection of useful global types. Works fine. Are you really sure that you did include the right file? Regards, Juergen