How to replace LENB Function in VB .net
Posted on 2004-08-24
I have an VB6 program tha uses the function LENB
According to the Error Code I get from the VB.net enviroment
"The AscB, ChrB, InstrB, LeftB, LenB, MidB, and RightB functions in Visual Basic 6.0 were string-handling functions that returned their results in bytes. They were used primarily for converting strings for use by double-byte character set languages.
In Visual Basic .NET, encoding and decoding functions in the System.Text namespace replace this functionality. For more information, see Globalizing and Localizing Applications."
If I go to Globalizing and localizing applications
I have read a lot of information and have not found out how to solve this particular Issue
The code in question is
ReDim arrData(LenB(blnData) - 1)
I'm very new at Vb.net and my training did not include a lot of information in upgrading VB6 Apps