[Gambas-bugtracker] Bug #2626: DataBrowser bug
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Mon Sep 19 09:48:21 CEST 2022
http://gambaswiki.org/bugtracker/edit?object=BUG.2626&from=L21haW4-
Comment #1 by Gianluigi GRADASCHI:
Hi Benoit,
if I add a counter to the FMain class ( Private $iCounter As Byte )
and complete the code this way before saving:
Public Sub DataSource1_BeforeSave(Data As Result)
If Not DataControl2.Value Then
Stop Event
Return
Endif
If Not DataControl1.Value Then Stop Event
'-------------
Inc $iCounter
If $iCounter > 1 Then
Stop Event
$iCounter = 0
Endif
End
Could this be the solution?
Regards & Thanks
More information about the Bugtracker
mailing list