<?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 VBScript string functions in Qlikview? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287295#M1196239</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The functions is fine, just need to handle the variables in a different way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub inString&lt;/P&gt;&lt;P&gt; dim DashLoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set BandOne = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;set BandTwo = ActiveDocument.Variables("Variable2")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DashLoc = instr(1, BandOne.GetContent.String, "-")-1&lt;/P&gt;&lt;P&gt;msgbox(left(BandOne.GetContent.String, DashLoc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 May 2011 15:03:53 GMT</pubDate>
    <dc:creator>erichshiino</dc:creator>
    <dc:date>2011-05-11T15:03:53Z</dc:date>
    <item>
      <title>VBScript string functions in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287292#M1196234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having a bit of a problem using some common string functions - instr and left, in particular.&amp;nbsp; I am reading in a variable value, and want to find the location of the dash in the string, and then display the first X number of characters in the string, up to the dash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&amp;nbsp; variable = 334-545&lt;/P&gt;&lt;P&gt;I want the message box to display 334&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set BandOne = ActiveDocument.Variables("Variable1").getContent&lt;BR /&gt;set BandTwo = ActiveDocument.Variables("Variable2").getContent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DashLoc = instr(1, BandOne, "-")&lt;BR /&gt;msgbox(left(BandOne, DashLoc))&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The code is stopping on the DashLoc location, saying "type mismatch".&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;What am I doing wrong? &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;﻿&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 16:13:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287292#M1196234</guid>
      <dc:creator />
      <dc:date>2011-05-10T16:13:12Z</dc:date>
    </item>
    <item>
      <title>VBScript string functions in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287293#M1196237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi, &lt;/P&gt;&lt;P&gt;function INSTR not exists, to use ...&lt;/P&gt;&lt;TABLE cellspacing="0" style="margin-top: 14pt; width: 580px; margin-left: 40px;" width="580"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style="width: 29%; x-cell-content-align: TOP; padding: 7px;" valign="top" width="29%"&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold;"&gt;subfield(S, ';' ,2)&lt;/SPAN&gt;&lt;/P&gt;&lt;/TD&gt;&lt;TD style="width: 71%; x-cell-content-align: TOP; padding: 7px;" valign="top" width="71%"&gt;&lt;P&gt;returns '&lt;SPAN style="font-style: italic;"&gt;cde&lt;/SPAN&gt;' if S is '&lt;SPAN style="font-style: italic;"&gt;abc&lt;/SPAN&gt;;&lt;SPAN style="font-style: italic;"&gt;cde&lt;/SPAN&gt;;&lt;SPAN style="font-style: italic;"&gt;efg&lt;/SPAN&gt;'&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;foor more detail see help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck, Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 May 2011 17:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287293#M1196237</guid>
      <dc:creator>llauses243</dc:creator>
      <dc:date>2011-05-10T17:19:06Z</dc:date>
    </item>
    <item>
      <title>VBScript string functions in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287294#M1196238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Luis, but that's not the right function.&amp;nbsp; That is to be used inside either an action or in the load script.&amp;nbsp; I am looking for something that will function in a macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 14:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287294#M1196238</guid>
      <dc:creator />
      <dc:date>2011-05-11T14:48:27Z</dc:date>
    </item>
    <item>
      <title>VBScript string functions in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287295#M1196239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The functions is fine, just need to handle the variables in a different way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sub inString&lt;/P&gt;&lt;P&gt; dim DashLoc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set BandOne = ActiveDocument.Variables("Variable1")&lt;/P&gt;&lt;P&gt;set BandTwo = ActiveDocument.Variables("Variable2")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DashLoc = instr(1, BandOne.GetContent.String, "-")-1&lt;/P&gt;&lt;P&gt;msgbox(left(BandOne.GetContent.String, DashLoc))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end sub&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 15:03:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287295#M1196239</guid>
      <dc:creator>erichshiino</dc:creator>
      <dc:date>2011-05-11T15:03:53Z</dc:date>
    </item>
    <item>
      <title>VBScript string functions in Qlikview?</title>
      <link>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287296#M1196240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Erich...&amp;nbsp; Thank you, thank you!&amp;nbsp; I am having a bit of a hard time getting my head around the syntax here.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 May 2011 15:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/VBScript-string-functions-in-Qlikview/m-p/287296#M1196240</guid>
      <dc:creator />
      <dc:date>2011-05-11T15:06:46Z</dc:date>
    </item>
  </channel>
</rss>

