Results 1 to 4 of 4

Thread: broad - strings

  1. #1

    Thread Starter
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305
    does anyone know of any site or anyone have a tutorial on strings ... like using left, mid, right, instr (i don't really know how to use them and don't know most of the commands to work with strings ...

  2. #2
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    461
    In vb type "Instr" an then press F1.

    Browse the help on "String Functions" and read the online help... they are very good at showing you what they can do.

  3. #3
    Guest
    The Left function returns a specified amount of character's starting from the Left (beginning) of the string
    Code:
    RetVal = Left("MyString", 5)
    'Returns "MyStr"
    
    'First part is the string you are using
    'Second part is the how many character's you want to return (starting from the left)
    The Right function returns a specified amount of character's starting from the right (end) of the string
    Code:
    RetVal = Right("MyString", 5)
    'Returns "tring"
    'First part is the string you are using
    'Second part is the how many character's you want to return (starting from the Right)
    The Mid function returns a specified amount of character's starting from a specified location of the string.
    Code:
    RetVal = Mid("MyString", 2, 3)
    'Returns "ySt"
    
    'First part is the string you are using
    'Second part is the position you want to start from
    'Third part is the how many character's you want to return (starting from the
    'position specified in the Second part)

  4. #4

    Thread Starter
    Hyperactive Member theman32x's Avatar
    Join Date
    May 2000
    Location
    New Jersey, USA
    Posts
    305

    thanks

    i can't press f1 cause i don't have all the help files installed but i will check the online help ... thanks megatron for clearing up left,right n mid ...

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