Vb vector sizes
Is there any funtion that can get us the size of a vector?
I have many vectors that are defined by the user input(Redim instruction) and after the input i wanna know the size of each vector (they can be all diferent sizes).
I haven''t used VB in a while but I believe UBound() would work.
Colin Jeanne | Invader''s Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud
Colin Jeanne | Invader''s Realm
"I forgot I had the Scroll Lock key until a few weeks ago when some asshole program used it. It even used it right" - Conner McCloud
Unless things have changed dramatically since I last heard, the STL is a C++ thing and not a VB thing...
quote:Original post by Instruo
Unless things have changed dramatically since I last heard, the STL is a C++ thing and not a VB thing...
Of course...
Well, going on topic again, the answer is, if I understood right, to use UBound(array).
I mean, if you''re calling an "array" as a "vector"... Actually a "vector" is a type composing of X, Y and Z parts.
Be sure to handle the UBound as the number of elements-1 (if using option base 0, the default).
-Nik
-Nik
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement