Re: [Gambas-user] define data-variable as record

2009-04-27 Thread Fabien Bodard
not really in gambas in gambas a class can contain only public variable. In this case it's like a type declaration. generally I name this class with a "T" After for a class with procedure and function i use accessor for data querying. PRIVATE $iMyVar as Integer PROPERTY MyVar as Integer SUB My

Re: [Gambas-user] define data-variable as record

2009-04-25 Thread Jeff
Same as the other answers - define a class. It's a good habit to get into to write accessor methods (set and get) or use properties rather than public variables. On Sat, 2009-04-25 at 01:55 -0700, juelin wrote: > hello, > it is possible to define a record into gambas? > thats mean a variable with

Re: [Gambas-user] define data-variable as record

2009-04-25 Thread Werner
juelin wrote: > hello, > it is possible to define a record into gambas? > thats mean a variable with different datatypes > for example: > type recorda as record >a as intger >b as string >c[99] as float > endtype > dim variablename as recorda > > kind regards > Jürgen > > Yes of cou

Re: [Gambas-user] define data-variable as record

2009-04-25 Thread Richard Muir-Gladman
Couldn't you just use a class with public attributes? On Sat, 2009-04-25 at 06:17 -0500, M0E Lnx wrote: > Never heard of such a thing. But maybe a variant type of variable will do > what you need > > On Apr 25, 2009 3:57 AM, "juelin" wrote: > > > hello, > it is possible to define a record in

Re: [Gambas-user] define data-variable as record

2009-04-25 Thread M0E Lnx
Never heard of such a thing. But maybe a variant type of variable will do what you need On Apr 25, 2009 3:57 AM, "juelin" wrote: hello, it is possible to define a record into gambas? thats mean a variable with different datatypes for example: type recorda as record a as intger b as string

[Gambas-user] define data-variable as record

2009-04-25 Thread juelin
hello, it is possible to define a record into gambas? thats mean a variable with different datatypes for example: type recorda as record a as intger b as string c[99] as float endtype dim variablename as recorda kind regards Jürgen -- View this message in context: http://www.nabble.c