SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: mid function

  1. #1
    SitePoint Member
    Join Date
    Nov 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mid function

    2 mids
    FileName = Mid(data1, InStrRev(data1, "\") + 1)
    pdfname = Mid(data1, 1, (InStr(data1, ".html") - 1)) & ".pdf"

    they both work ok on godaddy IIS, when testing on my xp pro/IIS 5.1, get an error,
    Microsoft VBScript runtime (0x800A0005)
    Invalid procedure call or argument: 'Mid'

    for the 2nd mid, pdfname=
    I need some update? or not cool cause I'm running 5.1?

  2. #2
    SitePoint Member
    Join Date
    Nov 2008
    Posts
    12
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ouch, found it, the file name being manipulated is a .htm not html, so the intsr function was returning -1, so that blew out the mid, sorry about the obvious, maybe it will help somebody in the future


Bookmarks

Posting Permissions

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