msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

VB6 - Sizeof

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
Andrew Chalk



Joined: 04 Oct 2007
Posts: 15

PostPosted: Sat Jul 22, 2006 12:25 am    Post subject: VB6 - Sizeof Reply with quote

Is there a function in VB that wil return the size of a data structure. To
C/C++ people, I am looking for the equivalent of sizeof().

Many thanks,

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Randy Birch



Joined: 04 Oct 2007
Posts: 1768

PostPosted: Sat Jul 22, 2006 2:25 am    Post subject: Re: VB6 - Sizeof Reply with quote

len() or lenb(), depending on the data you want.

--

Randy Birch
MS MVP Visual Basic
http://vbnet.mvps.org/

Please reply to the newsgroups so all can participate.




"Andrew Chalk" wrote in message @TK2MSFTNGP05.phx.gbl...
Is there a function in VB that wil return the size of a data structure. To
C/C++ people, I am looking for the equivalent of sizeof().

Many thanks,
Back to top
View user's profile Send private message
Sergey



Joined: 04 Oct 2007
Posts: 18

PostPosted: Sat Jul 22, 2006 2:52 am    Post subject: Re: VB6 - Sizeof Reply with quote

> Is there a function in VB that wil return the size of a data structure. To
> C/C++ people, I am looking for the equivalent of sizeof().
>


<---- C++Builder. How did you end up in VB?
Back to top
View user's profile Send private message
Andrew Chalk



Joined: 04 Oct 2007
Posts: 15

PostPosted: Sat Jul 22, 2006 2:31 am    Post subject: Re: VB6 - Sizeof Reply with quote

Thanks!
"Randy Birch" wrote in message @TK2MSFTNGP04.phx.gbl...
> len() or lenb(), depending on the data you want.
>
> --
>
> Randy Birch
> MS MVP Visual Basic
> http://vbnet.mvps.org/
>
> Please reply to the newsgroups so all can participate.
>
>
>
>
> "Andrew Chalk" wrote in message
> @TK2MSFTNGP05.phx.gbl...
> Is there a function in VB that wil return the size of a data structure. To
> C/C++ people, I am looking for the equivalent of sizeof().
>
> Many thanks,
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Related Topics:
SizeOf function Dear All, Is there any function in VB like "SizeOf()" in C/C++ ?? Best, Kevin Tang ( )

I want know that exist to like "sizeof()" function in "visua ^^ ? I waitting your answer...^^ T.Z

SetJob, Array's size and Marshal.SizeOf (VB.NET) Hello, I 'm a bit confused about the size of an array of byte use by getjob or setjob. For GetJob no problem, API return size needed BUT for SetJob I must pass an array with good size. It's seems that API need extra space for storing string. In the struct

Winsock and Time To Live I'm try to set the because I need a value >1. The first problem is that in some sites said that is 3 and in others that is 10, I don't know what Const winsock use. However I tried 3 and 10, but when I try to change the TT

Common Dialog Font - Color Choices VB Gurus, When I use the VB Common Dialog control to select a Font, I'd like the user to be able to select the font color as well. However, even with (what I think are) the correct flags set, the color drop down menu provides 16 static color choices. Othe
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group