How to get only certain characters?

Results 1 to 2 of 2

Thread: How to get only certain characters?

  1. #1
    Join Date
    Dec 1969
    Posts
    116

    Default How to get only certain characters?

    I have a file stored in the database like C:abc emp.txt.<BR>I just need to get only temp.text when I store it in a variable, when I get it back from the database, I know I can use Instr, but can somebody send a sample code to this.<BR><BR>Thanks inadvance..

  2. #2
    David Sills Guest

    Default RE: How to get only certain characters?

    Try this:<BR><BR>Dim MyString<BR>MyString = "C:abc emp.txt"<BR>&#039 take the substring starting from after the rightmost &#039\"<BR>MyString = Right(MyString, InStrRev(MyString, "\") + 1)<BR>&#039 now MyString reads "temp.txt"<BR>Response.Write MyString

Posting Permissions

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