<?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: How get RowNo() inside a module macro in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676957#M1074975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rob.&lt;/P&gt;&lt;P&gt;I just wrote above about the use. It is inside a module, not in a tipical script and not in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some idea?&lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Ricardo Ildefonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2014 20:53:10 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-07-29T20:53:10Z</dc:date>
    <item>
      <title>How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676953#M1074971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, people.&lt;/P&gt;&lt;P&gt;I need get the row count of tables from a module Function.&lt;/P&gt;&lt;P&gt;The editor isn't integrated into object-model and I look for any&lt;/P&gt;&lt;P&gt;reference about Application.Tables or ActiveDocument.Tables, etc.&lt;/P&gt;&lt;P&gt;Than, I try a lot of expression., but nothing works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function RecordCount(vanTableName)&lt;/P&gt;&lt;P&gt;dim d&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; d = Application.RowNo(vanTableName)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecordCount = d&lt;/P&gt;&lt;P&gt;End Function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get this using modules?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 18:27:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676953#M1074971</guid>
      <dc:creator />
      <dc:date>2014-07-29T18:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676954#M1074972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure if it's possible per api - but you could look in the APIGuide,qvw in your install-folder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you really need these information within the macro-modul I would create a structure-table with the system-fields like $Tables and $Fields and $Rows and so on. There is already an object-typ available by right-click on an empty sheet-part and then structure-table but you could also create some own objects. Then I would read these table per macro - look in APIGuide in field Member to getrowcount and you will find some examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:04:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676954#M1074972</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-29T20:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676955#M1074973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where will you use this module function? In script or in a chart expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676955#M1074973</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-29T20:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676956#M1074974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Marcus.&lt;/P&gt;&lt;P&gt;Yes, I am buinding a library to control the update of some tables but I won't have the names of its before the process..&lt;/P&gt;&lt;P&gt;I will try your sugestion and look for the member GetRowCount. If I get my objective I will tell you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Ricardo Ildefonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676956#M1074974</guid>
      <dc:creator />
      <dc:date>2014-07-29T20:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676957#M1074975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Rob.&lt;/P&gt;&lt;P&gt;I just wrote above about the use. It is inside a module, not in a tipical script and not in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have some idea?&lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Ricardo Ildefonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 20:53:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676957#M1074975</guid>
      <dc:creator />
      <dc:date>2014-07-29T20:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676958#M1074976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand. What I was asking is: from where will the function be invoked? Even if it is invoked from another routine within the module, what environment (chart, script or external) was the first routine invoked in?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2014 22:15:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676958#M1074976</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-29T22:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676959#M1074977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how &lt;A href="https://community.qlik.com/qlik-users/2286"&gt;Rob Wunderlich&lt;/A&gt; mentioned it's important to know where these informations should be generated and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Within the gui per module-editor you could use my suggestion from above, should it be while the script-execution it won't work because at that time there isn't an ActiveDocument available - but then you could use table-functions like TableName() or Noofrows() within the script. It is from extern you could read the meta-data from your app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is only for a single applications or for many? So it depends from what you want ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 06:56:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676959#M1074977</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-30T06:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676960#M1074978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Goog morning, Marcus. Good morning, Rob.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry I wasn't clear. I really am new on QlikView.&lt;/P&gt;&lt;P&gt;And, just reading your messages, I learned some new: while it is running a Reload there is no active document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I know I have a problems from basics. I am senior in SQL, C# and more, but I believe that work with QlikView is more like ABAP... Am I rigth about that?&lt;/P&gt;&lt;P&gt;Ops! I don't have experience with ABAP, too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am writing a code to be reused in other tasks and apps.&lt;/P&gt;&lt;P&gt;So, I don't have idea about when a script will be called. Just for it, each part of code is within a SUB ... ENDSUB declaration.&lt;/P&gt;&lt;P&gt;At the end of scripts a just use CALL to invoke each one I need.&lt;/P&gt;&lt;P&gt;Because that, there are moments I will start a process that need a table load before.&lt;/P&gt;&lt;P&gt;So, I need a function like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Function RecordCount(value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim r: r = -1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON ERROR RESUME NEXT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; r = Application.NoOfRows(value)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RecordCount = r&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ON ERROR GOTO 0&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;End Function&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that case, if a table just was loaded, but have no records I will get 0 (zero) for answer. But, if that table never was loaded before, the expression must fire a internal error and I will get a impossible value to records counter: -1 !!!&lt;/P&gt;&lt;P&gt;Can you see the big diference?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This test is repeated several times during the load process. Answer your question, Rob, I will use it from a script, at moment of load my data.&lt;/P&gt;&lt;P&gt;It would be very, very unproductive and very unsafe use variables for control that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for all these reasons I need know about a table state and its properties at a module macro.&lt;/P&gt;&lt;P&gt;May I clear this time?&lt;/P&gt;&lt;P&gt;I am sorry about my "newbie" situation, but I need start from a point, am I not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks your dedication.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Ricardo Ildefonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 14:40:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676960#M1074978</guid>
      <dc:creator />
      <dc:date>2014-07-30T14:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676961#M1074979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ricardo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for this you don't need macro-functions. How above mentioned you could read these informations with script-table-functions and you could use variables or a own table to save these informations. And check-routines about the record-counts or any errors (therefor is an Errormode available - set ErrorMode = 0|1|2) could be made with if-then-else-statements. Here a small example from an old post &lt;A href="https://community.qlik.com/message/259782"&gt;Re: Auswertung - QlikView Enterprise Management Console&lt;/A&gt; how table-functions could be used - but I believe you won't be able to access these post. In this case I log loads into a qvd whereby most of these load-statement is in a include-variable outsourced:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;let&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: gray;"&gt;vTabName&lt;/SPAN&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 'Pull-Load'; &lt;/SPAN&gt;&lt;SPAN lang="EN-US" style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Name des Script-Tabs für die LoadLogging-Routine &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadArt&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 'none'; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Variable um die Load-Art (full, incremental, partiell, none) abzubilden&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vRelated&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vRelated)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; + 1; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Zählvariable, um mehrere Loads an einem Tag unterscheiden zu können &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadStart&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(), '#.########', '.', ','); &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Beginn des Load-Vorganges - gehört zur Routine des Load-Logging&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;xyz:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;z&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; z;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;store&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; xyz &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; abc.qvd (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;/****************************************************************************************************************************************************************&lt;BR /&gt; Load-Logging zur Verbesserung der Performance und zum Nachhalten der Load-Vorgänge&lt;BR /&gt;&amp;nbsp; *****************************************************************************************************************************************************************&lt;BR /&gt; Hintergrund:&lt;BR /&gt; - das QlikView-eigene Load-Logging ist nicht konfigurierbar und vom Format unübersichtlich, insbesondere wenn mit Loop's und Call's gearbeitet wird&lt;BR /&gt; - Log-Files sind zur weiteren/dauerhaften Verwendung schwierig einlesbar&lt;BR /&gt; Vorgehensweise:&lt;BR /&gt; - relevante Loaddaten werden überwiegend per Tabellen- und Zeitfunktionen in Variablen geschrieben und in ein Log-File geschrieben&lt;BR /&gt; - der Script-Code wird größtenteil in eine Include-Variable ausgelagert, um die Übersichtlichkeit des eigentlichen Scriptes zu bewahren&lt;BR /&gt; ****************************************************************************************************************************************************************/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadTable&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;TableName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NoOfTables&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() - 1); &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Name der zuletzt geladenen Tabelle wird ausgelesen&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadEnde&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;num&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;now&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() - &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(), '#.########', '.', ','); &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Ende des Load-Vorganges als Uhrzeit&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadFieldCount&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NoOfFields&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vLoadTable)'); &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Anzahl der Tabellenfelder wird ausgelesen&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadFields&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = ''; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Variablen-Inhalt löschen&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;for&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = 1 &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vLoadFieldCount)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;let&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;vLoadFields&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; = '$(vLoadFields)' &amp;amp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;FieldName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, '$(vLoadTable)') &amp;amp; ', '; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// Felder der Tabelle werden String verkettet&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;next&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;BR /&gt; LoadLogging:&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;From&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; LoadLogging.qvd (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;// historische Load-Logging-Daten werden eingeladen&lt;BR /&gt; &lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;concatenate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;Load&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;today&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(1) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Datum&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vLoadStart)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 'hh:mm:ss') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Start&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vLoadEnde)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 'hh:mm:ss') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Ende&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;time&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vLoadEnde)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vLoadStart)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, 'hh:mm:ss') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Dauer&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; '$(vLoadTable)' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Tabelle&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;NoOfRows&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vLoadTable)') &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Datensätze&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vLoadFieldCount)&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FeldAnzahl&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, '$(vLoadFields)' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FelderListe&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;rowno&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;DS&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;DocumentName&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;() &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Anwendung&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;isnull&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;filesize&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vLoadTable).qvd')), 'kein Store', &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;filesize&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;('$(vLoadTable).qvd')) &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;FileSize&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9.0pt; font-family: 'Courier New';"&gt;$(vRelated)&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;Related&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;,&lt;BR /&gt; '$(vTabName)' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;ScriptTab&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;, '$(vLoadArt)' &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;as&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: maroon;"&gt;LoadArt&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;AutoGenerate&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; 1;&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;store&lt;/STRONG&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; LoadLogging &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; LoadLogging.qvd (&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;qvd&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;);&lt;BR /&gt; &lt;/SPAN&gt;&lt;STRONG style="color: blue; font-size: 9.0pt; font-family: 'Courier New';"&gt;drop&lt;/STRONG&gt; &lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: blue;"&gt;table&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt; LoadLogging;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: green;"&gt;/****************************************************************************************************************************************************************&lt;BR /&gt; Ende Load-Logging&lt;BR /&gt;&amp;nbsp; ****************************************************************************************************************************************************************/&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.0pt; font-family: 'Courier New'; color: black;"&gt;&lt;BR /&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 15:12:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676961#M1074979</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-30T15:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676962#M1074980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;I really am new on QlikView.&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ricardo,&lt;/P&gt;&lt;P&gt;I can't help thinking you are totally on the wrong track. It's unusual to need macros/module at all, esp for a beginner. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Marcus is giving you some good pointers. You can write reusable script Subroutines using the script SUB statement. And you can pull those routines into multiple scripts usng the $(Include) statement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 18:33:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676962#M1074980</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-30T18:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676963#M1074981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Marcus.&lt;/P&gt;&lt;P&gt;I understood what the code you send do. And I know that a system of logs is very useful.&lt;/P&gt;&lt;P&gt;But, note what I see:&lt;/P&gt;&lt;P&gt;1. the task of load data must include the code to record logs: makes working more complex;&lt;BR /&gt;2. any kind of update in order of load data, probaly, will denote changes in code: morr and more complex;&lt;/P&gt;&lt;P&gt;3. I need, at least, two "IFs" more to get the state of table;&lt;/P&gt;&lt;P&gt;4. to reuse the code, I need write it again or, if a build some kind of script macro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; using $(variables), then, I will need check several parts of code to do not &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interfere in others features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If QlikView, yet, had no features to read the states of tables during the load process from a VBA or JavaScript module, is there a way to return a value from your own macros? I could see the statments SUB ... ENDSUB. Is there some statment to return a value to its caller?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Ricardo Ildefonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:02:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676963#M1074981</guid>
      <dc:creator />
      <dc:date>2014-07-30T19:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676964#M1074982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;During the script-execution isn't any access through vba or js on tables and rows possible. Why want you put your checks in "extern" routines? Which adantage is expected? All your needs could be easily done with the table-functions and a few control-statements like if-then-else or sub-end sub, especially if you used further check-routines with filetime() or ErrorMode. There also the possibility to execute some batches or vbs during the reload so that you could check this etl-line from outside or you nested several etl-lines - but this could be very complicated ... generally all things are possible inside the script-execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code to read these table-informations musn't be so large how in my example if TableName() and NoofRows() is enough and you could put these code in a include-variable or a sub. In summary: I think there isn't any other way to do this with lesser effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 19:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676964#M1074982</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2014-07-30T19:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676965#M1074983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. You can't access table properties from a VB routine via script.&lt;/P&gt;&lt;P&gt;2. The function to get number of rows in a table already exists as a script function "NoOfRows('tablename')".&lt;/P&gt;&lt;P&gt;3. Script SUBs can't return values like functions. &lt;/P&gt;&lt;P&gt;4. If you want to modify NoOfRows so it returns -1 instead of null for empty table, you can create your own version as a variable with parameter like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET myNoOfRows = alt(NoOfRows('$1'),-1);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and call it in script as:&lt;/P&gt;&lt;P&gt;$(myNoOfRows('mytable'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jul 2014 21:34:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676965#M1074983</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2014-07-30T21:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: How get RowNo() inside a module macro</title>
      <link>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676966#M1074984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good morning, good day... Marcus and Rob.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will use the feature "variable with parameter"... It is powerful!!&lt;/P&gt;&lt;P&gt;In fact, I can see a lot of situations that it will be util.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About modules and macros, I have other features where they are necessary.&lt;/P&gt;&lt;P&gt;The code become simpler and I had tryed several types of ApplyMap and MapSubString that can't solve my needs of data sanitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now I will use parameters variables to solve that stuff about records count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once more time: thans, thanks, thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Ricardo Ildefonso&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Jul 2014 13:17:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-get-RowNo-inside-a-module-macro/m-p/676966#M1074984</guid>
      <dc:creator />
      <dc:date>2014-07-31T13:17:59Z</dc:date>
    </item>
  </channel>
</rss>

