<?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 Macro - convert String to Number in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226274#M78481</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use VB syntax:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;CInt(ActiveDocument.GetVariable("Evolution").GetContent.String) 'Convert to Int&lt;BR /&gt;CLng(ActiveDocument.GetVariable("Evolution").GetContent.String) 'Convert to Long Int&lt;BR /&gt;CDbl(ActiveDocument.GetVariable("Evolution").GetContent.String) 'Convert to Double (Decimal)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2009 23:01:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-10-27T23:01:22Z</dc:date>
    <item>
      <title>Macro - convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226273#M78480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to convert String to Number. I tried this but is wrong&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetVariable("Evolution").GetContent.Number&lt;BR /&gt;&lt;BR /&gt;ActiveDocument.GetVariable("Evolution").GetContent.Int&lt;BR /&gt;&lt;BR /&gt;Is there somewhere i can find manual of API VBScript?&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 22:08:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226273#M78480</guid>
      <dc:creator />
      <dc:date>2009-10-27T22:08:37Z</dc:date>
    </item>
    <item>
      <title>Macro - convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226274#M78481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use VB syntax:&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;CInt(ActiveDocument.GetVariable("Evolution").GetContent.String) 'Convert to Int&lt;BR /&gt;CLng(ActiveDocument.GetVariable("Evolution").GetContent.String) 'Convert to Long Int&lt;BR /&gt;CDbl(ActiveDocument.GetVariable("Evolution").GetContent.String) 'Convert to Double (Decimal)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2009 23:01:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226274#M78481</guid>
      <dc:creator />
      <dc:date>2009-10-27T23:01:22Z</dc:date>
    </item>
    <item>
      <title>Macro - convert String to Number</title>
      <link>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226275#M78482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I suspect that you could also use evaluate to do the conversion in QlikView:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;ActiveDocument.Evaluate("num(Evolution)")&lt;/P&gt;&lt;P&gt;I could easily have the wrong systax, or simply be wrong. But in general, I try to do as much as I can with QlikView, and as little as I can with Visual Basic. Part of that is that I'm a long way from being a Visual Basic expert. But I also reason that all QlikView developers will understand QlikView expressions, but only some of them will have a good grasp of Visual Basic expressions. So using as much QlikView as possible seems better to me from a maintenance perspective.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2009 01:12:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Macro-convert-String-to-Number/m-p/226275#M78482</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-10-28T01:12:07Z</dc:date>
    </item>
  </channel>
</rss>

