[Gambas-user] gb.report2 Conditional sections

Fabien Bodard gambas.fr at gmail.com
Mon Nov 23 16:45:40 CET 2020


  If hResult.Count > 0 Then
    TableLine.DataCount = hResult.Count
    rptAltBody.Parent.Children.Remove(rptAltBody.Parent.Children.Find(rptAltBody))

  Else

    TableLine.Parent.Children.Remove(TableLine.Parent.Children.Find(TableLine))

  Endif

This do the job ... Yes It's like a work around :-)

Le lun. 23 nov. 2020 à 00:31, Bruce <adamnt42 at gmail.com> a écrit :
>
> On 23/11/20 7:51 am, Fabien Bodard wrote:
> > Are you using the
> > devel version of Gambas ?
>
> No, version 3.15.2 (origin/stable)
>
> >
> > Can you send me your report.report and report.class ?
>
> I have attached a modified version of Gialuigi's report tester that
> simulates the situation. Runningit should generate an empty report about
> 1 in three times.
>
> regards
> bruce
>
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----



-- 
Fabien Bodard


More information about the User mailing list