<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwizguide.com/rss_namespace/">
 <channel>
  <title>Parker Software Forum : Error: 0, Not Object Reference</title>
  <link>http://www.parkersoft.co.uk/forum/</link>
  <description>This is an XML content feed of; Parker Software Forum : Scripting : Error: 0, Not Object Reference</description>
  <pubDate>Sat, 25 May 2013 23:07:34 +0000</pubDate>
  <lastBuildDate>Mon, 12 Dec 2011 11:53:50 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.64</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.parkersoft.co.uk/forum/RSS_post_feed.asp?TID=8420</WebWizForums:feedURL>
  <image>
   <title>Parker Software Forum</title>
   <url>http://www.parkersoft.co.uk/forum/forum_images/PSLSmall.bmp</url>
   <link>http://www.parkersoft.co.uk/forum/</link>
  </image>
  <item>
   <title>Error: 0, Not Object Reference : My apologise i though it was Visual...</title>
   <link>http://www.parkersoft.co.uk/forum/forum_posts.asp?TID=8420&amp;PID=19162#19162</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.parkersoft.co.uk/forum/member_profile.asp?PF=2725" rel="nofollow">jnymris</a><br /><strong>Subject:</strong> 8420<br /><strong>Posted:</strong> 12 Dec 2011 at 11:53am<br /><br />My apologise i though it was Visual Basic (VB) rather than actual VBScripting, thanks very much for you help I feel like a complete "Donkey" now :$ Sorry to cause an inconvenience<div><br></div><div>Jny&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 12 Dec 2011 11:53:50 +0000</pubDate>
   <guid isPermaLink="true">http://www.parkersoft.co.uk/forum/forum_posts.asp?TID=8420&amp;PID=19162#19162</guid>
  </item> 
  <item>
   <title>Error: 0, Not Object Reference : Hi,The Email2DB Scripting is VBScript...</title>
   <link>http://www.parkersoft.co.uk/forum/forum_posts.asp?TID=8420&amp;PID=19161#19161</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.parkersoft.co.uk/forum/member_profile.asp?PF=738" rel="nofollow">Stephen</a><br /><strong>Subject:</strong> 8420<br /><strong>Posted:</strong> 12 Dec 2011 at 11:22am<br /><br />Hi,<div><br></div><div>The Email2DB Scripting is VBScript - not Javascript. So the .Javascript String.indexof != won't work. You need to use&nbsp;</div><div><br></div><div>If Instr(1,MSG_Body,"&#091;P1&#093;") = 0 Then</div><div>.. code</div><div>End If</div><div><br></div><div>Steve</div>]]>
   </description>
   <pubDate>Mon, 12 Dec 2011 11:22:19 +0000</pubDate>
   <guid isPermaLink="true">http://www.parkersoft.co.uk/forum/forum_posts.asp?TID=8420&amp;PID=19161#19161</guid>
  </item> 
  <item>
   <title>Error: 0, Not Object Reference : I&amp;#039;m trying to modifiy a script...</title>
   <link>http://www.parkersoft.co.uk/forum/forum_posts.asp?TID=8420&amp;PID=19160#19160</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.parkersoft.co.uk/forum/member_profile.asp?PF=2725" rel="nofollow">jnymris</a><br /><strong>Subject:</strong> 8420<br /><strong>Posted:</strong> 12 Dec 2011 at 10:36am<br /><br />I'm trying to modifiy a script that has been created by another member of staff (due to them leaving)&nbsp;<div>I'm trying to add this line:</div><div>If(MSG_Body.indexOf("&#091;P1&#093;") != -1)</div><div>as i'm not wanting to process email that have a defined: &#091;P1&#093; in the message of the body</div><div><br></div><div>However when i try and save i get</div><div>Error: 0</div><div>Not an Object Reference.</div><div><br></div><div>I can see MSG_Attachment in the script so i'm wondering if i need to do anything else to enable MSG_Body?</div><div><br></div><div>Here's my full code should you need it. . .</div><div><div>Sub Main()</div><div>&nbsp; &nbsp; Dim x As Integer</div><div>&nbsp; &nbsp; Dim myATApp As String</div><div>&nbsp; &nbsp; Dim myFile As String</div><div><br></div><div>&nbsp; &nbsp; myATApp = "C:\IT Folder\AutotaskAPI.exe"</div><div><br></div><div>&nbsp; &nbsp; If MSG_AttachmentCount = 0 Then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Exit Sub</div><div>&nbsp; &nbsp; End If</div><div><br></div><div>&nbsp; &nbsp; For x = 1 To MSG_AttachmentCount</div><div>&nbsp; &nbsp; &nbsp; &nbsp; If(MSG_Body.indexOf("&#091;P1&#093;") != -1)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; myFile = "C:\Temp\" &amp; MSG_Attachment(x)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FileCopy MSG_AttachmentTempLocation(x), myFile</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Shell(myATApp &amp; " AddAttachment " &amp; FIELDS_Value("TicketNumber") &amp; " " &amp; MSG_Attachment(x) &amp; " " &amp; myFile &amp; " " &amp; MSG_Subject)</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'pause for 30 seconds</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Sleep 30000</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Kill myFile</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; Next x</div><div>End Sub</div><div><br></div><div>Declare Sub Sleep Lib "kernel32" (ByVal milliseconds As Long)</div></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 12 Dec 2011 10:36:56 +0000</pubDate>
   <guid isPermaLink="true">http://www.parkersoft.co.uk/forum/forum_posts.asp?TID=8420&amp;PID=19160#19160</guid>
  </item> 
 </channel>
</rss>