Re: [Gambas-user] some questions of: Struct

2011-01-17 Thread Jose J. Rodriguez
On 1/16/11, nando wrote: > > 4) This is similar to RECORD in VB. > It is like "Type" in VB6. For example: Private Type MYSTRUCT ID As String Name As String End Type Then later you would do: Dim MyPerson As MYSTRUCT MyPerson.ID = "012" MyPerson.Name = "Joe1962" Regards, Joe1962

Re: [Gambas-user] some questions of: Struct

2011-01-16 Thread nando
Thank you for your reply. For #2: I meant, the serialization is in order of the struct as defined. -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Mon, 17 Jan 2011 03:18:07 +0100 Subject: Re: [Gambas-user] some

Re: [Gambas-user] some questions of: Struct

2011-01-16 Thread Benoît Minisini
> Benoit, > 1) What version is struct implemented? I think you want to know that structures are implemented in Gambas 3 only. > 2) Reading and writing a struct to a stream (file, etc) is an exact copy of > the struct? Of course not. Data is serialized. Writing (or reading) a structure is exact

[Gambas-user] some questions of: Struct

2011-01-16 Thread nando
Benoit, 1) What version is struct implemented? 2) Reading and writing a struct to a stream (file, etc) is an exact copy of the struct? 3) Does struct pad with bytes to fit alignments or is it exact as defined? 4) This is similar to RECORD in VB. -Fernando