Defaults in Attributes

Started by sinus, August 31, 2017, 08:45:50 PM

Previous topic - Next topic

sinus

Only a short question:

In the helpfile of Attributes I read, that using default values is not always a good idea.
But if I delete the default for e.g. a number (delete 0.00), then it comes back again.

Means I cannot delete this default.
Is this by behavour, maybe for numbers?

Best wishes from Switzerland! :-)
Markus

thrinn

For numerical attributes, IMatch sets a default of 0 (or 0,00) automatically. This is because being "empty" is not a valid value for a number. On contrast, a string without any characters is perfectly valid for text attributes. Therefore, you can set and delete a default value for text attributes, but "deleting" the default for a numerical attribute is the same as setting it to 0.
Thorsten
Win 10 / 64, IMatch 2018, IMA

sinus

I see, Thorsten

Thanks a lot for enlighten me, makes me feeling better, I tried and tried  ::) :-[

All is fine now! (btw: still working on your script  :D hence my question)
Best wishes from Switzerland! :-)
Markus