Last post Nov 28, 2014 12:22 PM by Careed
Nov 28, 2014 11:08 AM|holdorfs|LINK
I am converting a VBA function to a VB .NET function. Here the VBA has an Oct() function for splitting a string into an array of x groups with 3 bytes. How can I create my own VB .NET function to do what the VBA Oct() does? Below is an example of how it
'Create one long from this 3 bytes.
nGroup = &H10000 * Asc(Mid(inData, i, 1)) + &H100 * MyASC(Mid(inData, i + 1, 1)) + MyASC(Mid (inData, i + 2, 1))
'Oct splits the long To 8 groups with 3 bits
nGroup = Oct(nGroup)
Any help would be great!
Nov 28, 2014 12:22 PM|Careed|LINK
The Oct function is available in Visual Basic for .NET.