<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Error checks for ActiveDocument.GetSheetObject(myString) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-checks-for-ActiveDocument-GetSheetObject-myString/m-p/149364#M27562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IsNull doesn't work, because VB Script is kind of funny about Nulls. VB Script has three types of Null (not counting the empty string), Null, Empty and Nothing. Nothing is for objects (you'll see objects set to Nothing when they are no longer needed in a sub).&lt;/P&gt;&lt;P&gt;Apparently, IsNothing isn't available, but here is a way to test for Nothing:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Tester&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("CH9999")&lt;BR /&gt; If TypeName(chart) = "Nothing" Then&lt;BR /&gt; ' The object is empty&lt;BR /&gt; End If&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jul 2009 20:51:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-07-15T20:51:56Z</dc:date>
    <item>
      <title>Error checks for ActiveDocument.GetSheetObject(myString)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-checks-for-ActiveDocument-GetSheetObject-myString/m-p/149363#M27561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In&lt;/P&gt;&lt;P&gt;&lt;B&gt;set&lt;/B&gt; chart = ActiveDocument.GetSheetObject(myString)&lt;/P&gt;&lt;P&gt;I want to check for errors, suppose the chart object doesn't exist. What does the chart return, i thought it would return null, but apparently "if not isnull(chart) then" doesn't work.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Can anybody tell me (in code) what the test for a chart object not being found is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 20:03:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-checks-for-ActiveDocument-GetSheetObject-myString/m-p/149363#M27561</guid>
      <dc:creator />
      <dc:date>2009-07-15T20:03:56Z</dc:date>
    </item>
    <item>
      <title>Error checks for ActiveDocument.GetSheetObject(myString)</title>
      <link>https://community.qlik.com/t5/QlikView/Error-checks-for-ActiveDocument-GetSheetObject-myString/m-p/149364#M27562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IsNull doesn't work, because VB Script is kind of funny about Nulls. VB Script has three types of Null (not counting the empty string), Null, Empty and Nothing. Nothing is for objects (you'll see objects set to Nothing when they are no longer needed in a sub).&lt;/P&gt;&lt;P&gt;Apparently, IsNothing isn't available, but here is a way to test for Nothing:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;Sub Tester&lt;BR /&gt; set chart = ActiveDocument.GetSheetObject("CH9999")&lt;BR /&gt; If TypeName(chart) = "Nothing" Then&lt;BR /&gt; ' The object is empty&lt;BR /&gt; End If&lt;BR /&gt;End Sub&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2009 20:51:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-checks-for-ActiveDocument-GetSheetObject-myString/m-p/149364#M27562</guid>
      <dc:creator />
      <dc:date>2009-07-15T20:51:56Z</dc:date>
    </item>
  </channel>
</rss>

