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

Benoît Minisini gambas at ...1...
Wed Jul 29 21:37:29 CEST 2015


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 its 
size in memory.

Regards,

-- 
Benoît Minisini




More information about the User mailing list