Invalid procedure call or argument: 'mid'

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



I am getting the error indicated below when I run the a script
containing the code at the bottom. The 6, 65, and the string are the
actual values passed to the MID function which failes with the
indicated error. Thanks

*********** OUTPUT *********************
C:\>cscript evt_new.vbs
Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved.

6
55
Document 254, Microsoft Outlook - Memo Style owned by jcasna was
deleted on Police Admin. LJ-4000.

C:\evt_new.vbs(95, 4) Microsoft VBScript runtime error: Invalid
procedure call or argument: 'mid'
***** END OUTPUT ********

********* Script Section ************
If (DateDiff("d",leftDate,curDate))=0 Then
If (InStr(intDesc, intPort))<>0 Then
'strFile.WriteLine (intRecordNum & " / " & intDesc & " / " &
leftDate)
'strFile.WriteLine ("***" & strAction & "=>" & curDate & "*** " &
intDesc)

intOwner = InStr(intDesc, "owned by")
intOwnerEnd = intOwner + 9
intWas = InStr(intDesc, "was")
intWasEnd = intWas - 1
intNameLen = intWasEnd - intOwnerEnd
wscript.echo intNameLen
wscript.echo intOwnerEnd
wscript.echo intDesc
strName = mid(intDesc, intOwnerEnd, intNameLen)
***** END SCRIPT SECTION *********

.



Relevant Pages

  • SecurityFocus Microsoft Newsletter #83
    ... MICROSOFT VULNERABILITY SUMMARY ... Microsoft IIS CodeBrws.ASP Source Code Disclosure Vulnerability ... Microsoft Internet Explorer History List Script Injection ... Microsoft Windows 2000 Lanman Denial of Service Vulnerability ...
    (Focus-Microsoft)
  • SecurityFocus Microsoft Newsletter #84
    ... The most critical piece of vulnerability assessment is remediation. ... MICROSOFT VULNERABILITY SUMMARY ... IcrediBB Script Injection Vulnerability ... WorkforceROI XPede Unprotected Administrative Facilities... ...
    (Focus-Microsoft)
  • Re: SP4 error running replsys.sql
    ... clicked Yes to run the Replsys script but it still bombed out. ... Any other suggestion on how to install SP4? ... try to connect to a single user mode instance. ... I had a case open with Microsoft and they had no clue. ...
    (microsoft.public.sqlserver.setup)
  • Re: General Printing Issues (Default Printer)(Excel)(Outlook)
    ... the script does not need to run elevated if the connection is for the user. ... Point and Print Security on Windows Vista ... Microsoft Windows Script Host Version 5.7 ...
    (microsoft.public.windows.vista.print_fax_scan)
  • Outlook Express gets error in C:WINDOWSsystem32shdoclc.dllpreview.dlg when attempting to print
    ... Internet Explorer Script Error ... I applied some Microsoft Update ... Security Update for Windows XP. ...
    (microsoft.public.windowsxp.help_and_support)