Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread adamn...@gmail.com
On Wed, 29 Jul 2015 21:21:09 -0400 "nando" wrote: > Benoit, > Perhaps you could provide an example. I find nothing for the correct > syntax/use. > > For example... > > Private p As Pointer > > Public Struct EmployeeStruct > FirstName as String > Age as integer > End Struct > > Public AnE

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
Print p.Sizeof() 'run-time error -N -- Original Message --- From: "nando" To: mailing list for gambas users Sent: Wed, 29 Jul 2015 21:00:10 -0400 Subject: Re: [Gambas-user] Print SizeOf(t) 't is a string > SWEET! > Thank you Benoit. >

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
SWEET! Thank you Benoit. -- Original Message --- From: Benoît Minisini To: nand...@nothingsimple.com, mailing list for gambas users Sent: Wed, 29 Jul 2015 21:37:29 +0200 Subject: Re: [Gambas-user] Print SizeOf(t) 't is a string > Le 29/07/2015 21:15, nando

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread Benoît Minisini
Le 29/07/2015 21:15, nando a écrit : > Thanks guys, > I was in 'C' mode and needed the size of a structure. > > Perhaps, Benoit, sizeof(a string, or a struct) can do exactly that? > wishing out loud. > > Thanks! > DOH! > -Nando If you a pointer to the structure, just use Object.SizeOf() to know it

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
for gambas users Sent: Wed, 29 Jul 2015 20:14:32 +0200 Subject: Re: [Gambas-user] Print SizeOf(t) 't is a string > Le 29/07/2015 20:00, nando a écrit : > > Dim t As String > > > > Print SizeOf(t) > > Type mismatch: wanted integer, got string instead > > >

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread Tobias Boege
On Wed, 29 Jul 2015, nando wrote: > Dim t As String > > Print SizeOf(t) > Type mismatch: wanted integer, got string instead > > 'Sizeof also errors on a Stucture > > Ubuntu 14.04LTS > Gambas 3.7.1 > Do you realise that you were replying to a totally unrelated thread from July 2013? Create a n

Re: [Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread Benoît Minisini
Le 29/07/2015 20:00, nando a écrit : > Dim t As String > > Print SizeOf(t) > Type mismatch: wanted integer, got string instead > > 'Sizeof also errors on a Stucture > > Ubuntu 14.04LTS > Gambas 3.7.1 > > -Fernando > Have you read the documentation of SizeOf()? -- Benoît Minisini ---

[Gambas-user] Print SizeOf(t) 't is a string

2015-07-29 Thread nando
Dim t As String Print SizeOf(t) Type mismatch: wanted integer, got string instead 'Sizeof also errors on a Stucture Ubuntu 14.04LTS Gambas 3.7.1 -Fernando -- ___ Gambas-user