Results 1 to 6 of 6

Thread: substr()

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Mar 2000
    Location
    Mexico
    Posts
    16

    Unhappy

    is it there an equivalence of (substr()) for visual basic
    I need to elimenate characters from a string, I couln´t use this function in VB I dont know if it only works in visual C or what do I need to make it work.

    Thaks

  2. #2
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    mid()

  3. #3
    New Member
    Join Date
    Jun 1999
    Location
    SANTA ANA
    Posts
    14
    Syntax

    Mid(stringvar, start[, length]) = string


  4. #4
    Addicted Member
    Join Date
    Sep 2000
    Posts
    138
    Your're right, J_BEYTIA. I only provided the name of the function to refer to VB Help where one can easily find the detail of its usage and syntax.

  5. #5
    New Member
    Join Date
    Oct 2000
    Location
    UK
    Posts
    4

    Smile re: substr

    To eliminate characters from a string, try the Replace function. The equivalent of substr in vb =instr

  6. #6
    Guest
    If its a string use Mid$.
    Replace works in VB6 only.

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