photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: sinus on August 31, 2017, 08:45:50 PM

Title: Defaults in Attributes
Post by: sinus on August 31, 2017, 08:45:50 PM
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?

Title: Re: Defaults in Attributes
Post by: thrinn on August 31, 2017, 08:58:10 PM
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.
Title: Re: Defaults in Attributes
Post by: sinus on August 31, 2017, 09:02:42 PM
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)