Rene
1
Hello,
I probably have a stupid question but I can`t clear the contents of an integer field (with Allow Null) in a method. ![Question :?:]()
Can anyone give me an example??
Something like.
IntegerField = 0
IntegerField = “”
IntegerField = null
With kind regards Rene.
the last one should work fine (just tested it..)
numberField = null;
Doesn’t it work for you? Can you give me an example?
Rene
3
Yes Now it`s working just fine.
I was clearing this value through a Relation and in some records (just about all I`ve tried) the master value was empty,
So I got an error: “Couldn`t convert an object to Null”
Meaning the relation isn`t available while I thought it was referring to the value I was resetting.
Thank you very much for replying Johan
to check if a relation is valid use:
if (orders_to_order_details)
{
orders_to_order_details.price = null;
}