sub string

Results 1 to 3 of 3

Thread: sub string

  1. #1
    Join Date
    Dec 1969

    Default sub string

    My asp page is returning me a 13 digit number from db. I want to get first 10 digits and store it in a variable and last 3 in another ....any idea how can I do it.<BR>Thanks

  2. #2
    Eddie Campbell Guest

    Default RE: sub string

    String1 = Left(MyString,10)<BR>String2 = Right(MyString,3)

  3. #3
    Join Date
    Dec 1969

    Default RE: sub string

    x="12345678910111213"<BR>var1=Mid(x,1,10)<BR>var2= Mid(x,11,3)

Posting Permissions

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