LenB Not Suported In VB

Apr 14, 2010

What is LenB? What does it mean? I have recently converted a project form vb6 to vb.net and it is riddled with this error 'Name LenB is not declared'.[code]...

View 13 Replies


ADVERTISEMENT

What Is LenB Actually Doing On None String Parameters

Feb 24, 2009

I have this bit of code that is being converted from vb6 to vb.net. I need to know what LenB is doing in this bit of code.

Dim singleValue As Single 'var for conversion use(4byte -> 1single)'
Dim bytes() As Byte
Dim valueB() As Byte 'this gets set elsewhere and is redim-d to its size'

[code]....

Am I right in thinking that bytes is always ReDim'ed to the same size? By the looks of it 4 elements.Why then use LenB to ReDim if you could just use a number? And why ReDim in the loop at all?

View 2 Replies

VS 2008 .net Version Of LenB, MidB, Strptr?

Oct 21, 2011

Im comverting a vb6 project to vb.net. i need Vb.net version of LenB, MidB, Strptr functions.

View 12 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved