Quote:
> Does VB have a function which is equivalent to sizeof() in C?
> something where I can go sizeof(double) or sizeof(some user defined
> structure)?
In VB32, there is a function that has been added called "LenB".
According to the help file:
"The Len function returns the size of a user-defined type as it will be
when written to a file. By contrast, LenB returns the in-memory size of
a user-defined type, including any padding between elements."
So if you're using VB4 32bit, use LenB instead...
Geoff
====================================
"I brake for MCSD's..."
------------------------------------
The Knowledge Base is YOUR FRIEND!!!
http://www.microsoft.com/kb/
====================================