I added some more functions (InStrRev and IsNumeric) and made the example project better.
This module contains some functions for working with byte arrays the same way you would with strings.
Comes with functions like: InStr, Mid, Left, Right, etc.
Gives you the simplicity of strings, with the speed of byte arrays.
I'm mainly writing this for a Winsock app I'm writing, so I can handle/parse all byte array data more easily.
Here's a list of functions so far. I'll update this thread when I add more functions. If you have any ideas/suggestions, post them here.
Most functions give you the option of returning either a string or a byte array.
- bsAppendToByte (eq. Str = Str & "...")
- bsInStrString (eq. of InStr function)
- bsInStrRev (eq. of InStrRev function)
- bsLeft (eq. of Left function)
- bsMid (eq. of Mid function)
- bsRight (eq. of Right function)
- bsStrLeft (eq. of Left function (returns as string))
- bsStrMid (eq. of Mid function (returns as string))
- bsStrRight (eq. of Right function (returns as string))
- bsIsNumeric (eq. of IsNumeric function)
If you have ideas for more functions, post them here.




Reply With Quote