Results 1 to 2 of 2

Thread: Select a character of a string

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 1999
    Location
    Barcelona, Espaņa
    Posts
    14

    Post

    Hi

    Now I got a simple question: How do I select a character of a string.
    e.g. the third character of the string "Visual Basic" would be "s"
    What is the way to do this?

    Regards
    Wouter

  2. #2
    Hyperactive Member
    Join Date
    Aug 1999
    Location
    UK
    Posts
    300

    Post

    to select the third char try this

    dim hold as string

    hold = mid("visual basic",3,1)

    hold now contains the char S

    the 3,1 indicates to start at the third position and return everything in the length
    in this case 1. if the length required was 2 it would return su

    hope this helps > locutus

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