Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 7 Jahren, 12 Monaten
Letzter Beitrag:
vor 6 Jahren, 12 Monaten
Beteiligte Autoren:
Andres Sanchez, Ola, Jeff Graham, Paulo Oliveira, Piet van Zanten

WD15 - How to change "Reset if Zero", in runtime ?

Startbeitrag von Andres Sanchez am 22.07.2010 00:25


I am trying to change the setting of the "Reset if Zero" checkbox, in runtime.
the control is an ITEM in a Report.

Anyone ?


Andres Sanchez


Hi Andres,

I would go the other way around.
If you already need code, just forget about reset if zero.
Change the item type into string and fill it by code.


von Piet van Zanten - am 22.07.2010 08:05

Yes, I know that was my next option, but it seems that PCSoft can fix this with very little effort.

I will send a message to PCSoft on this matter.



von Andres Sanchez - am 22.07.2010 15:25
Hi all!

I need to do this too, so I just wonder whether there has been any development with this subject? It would really be nice to be able to programmatically reset numeric item fields in reports to "empty"...

So, if I change a numeric item field in a report to string, then obviously automatic column calculations won't work with it any more. Should I then maintain a numeric field also, maybe hidden outside the report, in order to get the calculations right?

Best regards

von Ola - am 20.07.2011 10:02
I never used it but probably the ..inputmask property can help you.
check the notes in the section Multiple input mask.

von Paulo Oliveira - am 20.07.2011 13:19
I don't know for sure if it will work in a report, but in forms you can set numeric items to "empty" by: item = NULL.


von Jeff Graham - am 20.07.2011 15:24
Thanks Paulo and Jeff

Jeff's suggestion seemed simpler so I tried it first, and yes: it works!

Many, many thanks!

best regards

von Ola - am 20.07.2011 21:15
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.