<div dir="ltr">Hi Hans,<br><br>You have the answer to the first two questions in the IDE by navigating in the Gambas project (in my case, gambasdevel) until you open in the Components gb.report2 > ReportControl > ReportFrame > ReportLabel.<br>In ReportLabel.class you can see this code in the _Paint routine:<br><br>  If sTempText Begins "=" Then<br>     $hEval.Compile()<br>     sTempText = $hEval.Value<br>  Endif<br><br>  If $sFormat Then<br>    Try sTempText = Format(sTempText, $sFormat)<br>  Endif<br>  <br>  If $bUseField Then<br>    sTempText = DecodeText(sTempText, Page)<br>  Endif<br><br>and the Function:<br><br>Private Function DecodeText(sText As String, Optional Page As Integer, Optional ForSize As Boolean = False) As String<br>  <br>  If ForSize Then<br>    If InStr(sText, "$PAGE") Then sText = Replace(sText, "$PAGE", "999")<br>    If InStr(sText, "$NPAGE") Then sText = Replace(sText, "$NPAGE", "999")<br>  Else<br>    If InStr(sText, "$PAGE") Then sText = Replace(sText, "$PAGE", Str(Page + 1))<br>    If InStr(sText, "$NPAGE") Then sText = Replace(sText, "$NPAGE", Str(Me.Report.PageCount))<br>  Endif<br>  <br>  Return sText<br>  <br>End<br><br>If I well understood Fabien's intentions, now it only works with page, pages, index but I think the intention is to extend it to other regular expressions.<br>But I'm not sure.<br><br>UserField: Fabien in tmpJournal write this:<br>Restore the UseField property in ReportLabel so for now the component is backward compatible.<br><br>Range: I don't think it's activated in either gb.report2, see:<br><br><a href="http://gambaswiki.org/wiki/comp/gb.report/reportcontrol/range">http://gambaswiki.org/wiki/comp/gb.report/reportcontrol/range</a><br><br>Regards<br>Gianluigi</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 20 ago 2019 alle ore 11:08 Hans Lehmann <<a href="mailto:hans@gambas-buch.de">hans@gambas-buch.de</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <font face="DejaVu Sans Mono">Hello,<br>
      <br>
      I currently have several questions about the component gb.report2:<br>
      <br>
    </font>
    <ul>
      <li><font face="DejaVu Sans Mono">Where can I find information
          about the variables(?) `page` and `pages? So far I couldn't
          find anything on the internet.</font></li>
      <li><font face="DejaVu Sans Mono">Why do I have to write
          ReportLabel in the properties (in the IDE in the object
          inspector) to a report control ReportLabel as footer in the
          properties for example `="Page " & page & " of " &
          pages`? Why the equal sign at the beginning?</font></li>
      <li><font face="DejaVu Sans Mono">What is the meaning of the
          `UseField` property? Which field is meant by this?</font></li>
      <li><font face="DejaVu Sans Mono">We are looking for documentation
          for the property `Range`. What do I have to add to the `Range`
          property? Which data type? Which value range is to be
          considered?<br>
        </font></li>
    </ul>
    <font face="DejaVu Sans Mono"><br>
      With kind regards<br>
      <br>
      Hans<br>
    </font>
  </div>

<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>