Invalid procedure call or argument: 'mid'
- From: mmethe@xxxxxxxxx
- Date: 16 Dec 2005 11:20:34 -0800
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 *********
.
- Follow-Ups:
- Re: Invalid procedure call or argument: 'mid'
- From: Bill James
- Re: Invalid procedure call or argument: 'mid'
- From: mmethe
- Re: Invalid procedure call or argument: 'mid'
- Prev by Date: WshScriptExec.Terminate returns error
- Next by Date: Find path to system folders
- Previous by thread: WshScriptExec.Terminate returns error
- Next by thread: Re: Invalid procedure call or argument: 'mid'
- Index(es):
Relevant Pages
|