LenB Not Suported In VB
Apr 14, 2010What 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 RepliesWhat 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 RepliesI 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?
Im comverting a vb6 project to vb.net. i need Vb.net version of LenB, MidB, Strptr functions.
View 12 Replies