<?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 Re: Can't create macro user defined function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/1733954#M603916</link>
    <description>&lt;P&gt;whats the solution for version 12.4 since BNF cannot be disabled.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 06 Aug 2020 23:54:35 GMT</pubDate>
    <dc:creator>userid128223</dc:creator>
    <dc:date>2020-08-06T23:54:35Z</dc:date>
    <item>
      <title>Can't create macro user defined function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/76286#M603912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to create a macro user-defined function like this thread:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="2051" data-containertype="14" data-objectid="115191" data-objecttype="1" href="https://community.qlik.com/thread/115191"&gt;https://community.qlik.com/thread/115191&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function addTheseForMe(var1, var2)&lt;/P&gt;&lt;P&gt;addTheseForMe= var1+var2&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I try to run this in script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LET varA = 7;&lt;/P&gt;&lt;P&gt;LET varB = 8;&lt;/P&gt;&lt;P&gt;LET varAB = addTheseForMe(varA, varB);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Syntax error&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Unexpected token: '(', expected one of: ':', 'OPERATOR_PLUS', 'OPERATOR_MINUS', 'OPERATOR_MULTIPLICATION', 'OPERATOR_DIVISION', 'OPERATOR_STRING_CONCAT', 'like', ...&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LET varAB = addTheseForMe&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;(&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;varA, varB)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 15:57:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/76286#M603912</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T15:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create macro user defined function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/76287#M603913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're falling foul of the new BNF "strict" mode in QV12. You can disable this with the folowing line at the top of your script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;///$bnf off&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You can turn off this feature for all apps on the machine by updating the settings.ini file - add this line&lt;/P&gt;&lt;P&gt;&lt;EM&gt;EnableBnfReload=0&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;(You can also switch this off from the settings easter egg. Click Help|About and right click the Qlikview icon in the bottom left corner. Find 'EnableBnfReload' and set it to zero).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 16:51:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/76287#M603913</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-06-25T16:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create macro user defined function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/76288#M603914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That solved the problem. Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2018 17:23:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/76288#M603914</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-06-25T17:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create macro user defined function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/1527596#M603915</link>
      <description>&lt;P&gt;In 12.30 this solution does not work anymore as NBF cannot be disabled.&lt;/P&gt;&lt;P&gt;Are user defined functions not possible anymore or is there another solution?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jan 2019 10:27:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/1527596#M603915</guid>
      <dc:creator>hansrokers</dc:creator>
      <dc:date>2019-01-08T10:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't create macro user defined function</title>
      <link>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/1733954#M603916</link>
      <description>&lt;P&gt;whats the solution for version 12.4 since BNF cannot be disabled.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 23:54:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-t-create-macro-user-defined-function/m-p/1733954#M603916</guid>
      <dc:creator>userid128223</dc:creator>
      <dc:date>2020-08-06T23:54:35Z</dc:date>
    </item>
  </channel>
</rss>

