Results 1 to 3 of 3

Thread: Left$,Mid$,Stuff

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    113
    i would like strLeft to = "x"

    a = "me/x #~ 2
    Left_Object = Trim$(Left$(a, InStr(a, "/") - 1)) 'me
    strLeft = Trim$(Left$(a, InStr(a, "~") - 2)) 'me/x
    strRight = Trim$(Mid$(a, InStr(a, "~") + 1)) '2

    CallByName Left_Objec, strLeft, VbLet, strRight

  2. #2
    Fanatic Member
    Join Date
    Mar 2000
    Location
    That posh bit of England known as Buckinghamshire
    Posts
    658

    Thumbs up Give this a whirl

    Code:
    strLeft = Mid$(a, InStr(1, a, "/") + 1, 1)
    Iain, thats with an i by the way!

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Sep 2000
    Posts
    113
    Sorry that was a dum question

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