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
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.
>
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
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
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
> >
>
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
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
---
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