<?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 MoveExpression Error, AddExpression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212604#M504659</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well i can solve my problem with the format, i found the code&lt;/P&gt;&lt;P&gt;i need add this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; Gexpr.Item(Gexpr.Count-1).Item(0).Data.ExpressionVisual.NumberPresentation.Type=10&lt;BR /&gt; Gexpr.Item(Gexpr.Count-1).Item(0).Data.ExpressionVisual.NumberPresentation.Fmt="#.##0"&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and all works.&lt;/P&gt;&lt;P&gt;I dont use the ExpressionMove, now i remove all expressions and in the last i add the expression that i want keep, like JGeorge tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jan 2010 12:38:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-01-15T12:38:15Z</dc:date>
    <item>
      <title>MoveExpression Error, AddExpression</title>
      <link>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212601#M504656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, im develop a macro that adding expressions in a table but i want keep the first but in the last position.&lt;/P&gt;&lt;P&gt;I have this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE ___default_attr="plain" class="jive_text_macro jive_macro_code" jivemacro="code"&gt;&lt;BR /&gt; Set Grafico=ActiveDocument.GetSheetObject("CH16")&lt;BR /&gt; Set pGraf= Grafico.GetProperties&lt;BR /&gt; Set Gexp= pGraf.Expressions&lt;BR /&gt;&lt;BR /&gt; Set Expresiones= ActiveDocument.Fields("DimensionesMercancias")&lt;BR /&gt;&lt;BR /&gt; if (Gexp.Count-1)&amp;gt;0 then Grafico.MoveExpression (Gexp.Count-1),0&lt;BR /&gt;&lt;BR /&gt; For x=0 to Gexp.Count-1&lt;BR /&gt; Grafico.RemoveExpression 1&lt;BR /&gt; Next&lt;BR /&gt; Set NDimen = Expresiones.GetSelectedValues&lt;BR /&gt; For i=0 to NDimen.Count -1&lt;BR /&gt; Dimension=NDimen.Item(i).Text&lt;BR /&gt; If Dimension="Buque" then Nombre="LHNBU2"&lt;BR /&gt; If Dimension="Mercancía" then Nombre="LHNMER2"&lt;BR /&gt; If Dimension="Ope" then Nombre="LHOPE2"&lt;BR /&gt; If Dimension="Puerto" then Nombre="LHNPO"&lt;BR /&gt; If Dimension="País" then Nombre="LHNNO"&lt;BR /&gt; If Dimension="Remit/Recep" then Nombre="LHNRR"&lt;BR /&gt; If Dimension="Muelle" then Nombre="LHNMU"&lt;BR /&gt; If Dimension="Envase" then Nombre="LHNENV"&lt;BR /&gt; If Dimension="Consignatario" then Nombre="LHNCS2"&lt;BR /&gt; Grafico.AddExpression Nombre&lt;BR /&gt; Set pGraf= Grafico.GetProperties&lt;BR /&gt; Set Gexpr= pGraf.Expressions&lt;BR /&gt; Gexpr.Item(Gexpr.Count-1).Item(0).Data.ExpressionVisual.Label.v= Dimension&lt;BR /&gt; Grafico.SetProperties pGraf&lt;BR /&gt; Next&lt;BR /&gt; Set pGraf= Grafico.GetProperties&lt;BR /&gt; Set Gexp= pGraf.Expressions&lt;BR /&gt;/*******************************My Error*************************************/&lt;BR /&gt; if (Gexp.Count-1)&amp;gt;0 then Grafico.MoveExpression 0,(Gexp.Count-1)&lt;BR /&gt; /***************************************************************************/&lt;BR /&gt;End Sub&lt;BR /&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;I dont know why dont work it, because i think that its simple, i want move the expression in position 0 to the last position, but i have an error. But if i write before "msgbox(Gexp.Count-1)" for see if its the good position, the macro works fine. I dont understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, have someone any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jose Manuel Abella&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jan 2010 17:36:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212601#M504656</guid>
      <dc:creator />
      <dc:date>2010-01-14T17:36:55Z</dc:date>
    </item>
    <item>
      <title>MoveExpression Error, AddExpression</title>
      <link>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212602#M504657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i know that the "MoveExpression" became useless since v8.50.6261 in the QlikView OCX&lt;/P&gt;&lt;P&gt;fortunately, there is a workaround which is to remove all expressions before adding them again in the right order&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 10:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212602#M504657</guid>
      <dc:creator />
      <dc:date>2010-01-15T10:22:51Z</dc:date>
    </item>
    <item>
      <title>MoveExpression Error, AddExpression</title>
      <link>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212603#M504658</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Jgeorge i try your suggestion before and that works fine, but my problem about that is what i dont know how can i define an integer format for my expression? Because is a sum of Tons.&lt;/P&gt;&lt;P&gt;How is the code for define a format (or property) like integer?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 10:36:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212603#M504658</guid>
      <dc:creator />
      <dc:date>2010-01-15T10:36:27Z</dc:date>
    </item>
    <item>
      <title>MoveExpression Error, AddExpression</title>
      <link>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212604#M504659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well i can solve my problem with the format, i found the code&lt;/P&gt;&lt;P&gt;i need add this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE style="overflow-x: scroll;"&gt;&lt;PRE style="margin: 0px;"&gt;&lt;BR /&gt; Gexpr.Item(Gexpr.Count-1).Item(0).Data.ExpressionVisual.NumberPresentation.Type=10&lt;BR /&gt; Gexpr.Item(Gexpr.Count-1).Item(0).Data.ExpressionVisual.NumberPresentation.Fmt="#.##0"&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;and all works.&lt;/P&gt;&lt;P&gt;I dont use the ExpressionMove, now i remove all expressions and in the last i add the expression that i want keep, like JGeorge tell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jan 2010 12:38:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MoveExpression-Error-AddExpression/m-p/212604#M504659</guid>
      <dc:creator />
      <dc:date>2010-01-15T12:38:15Z</dc:date>
    </item>
  </channel>
</rss>

