Results 1 to 1 of 1

Thread: VB6 - [UPDATED] ByteString - Treat Byte Arrays As Strings

Threaded View

  1. #1

    Thread Starter
    "Digital Revolution"
    Join Date
    Mar 2005
    Posts
    4,471

    VB6 - [UPDATED] ByteString - Treat Byte Arrays As Strings

    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.
    Attached Images Attached Images  
    Attached Files Attached Files
    Last edited by DigiRev; Nov 22nd, 2006 at 06:52 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width