Here is my problem:
Let's say I have variable refFieldRef of type fieldRef.
Using statment
TmpValue := refFieldRef.Value;
I get field's value but variable TmpValue contains data of type Variant. I can check data type using functions like
TmpValue.IsBoolean()
but I don't know how to convert data from variant to simple Navision data type (decimal, boolean, integer).
Does anybody have ideas how to do it ?
0
Comments
Here you see that you can just assign the Variant value to the right variable. For the Boolean type, a local variable HasValue of type Boolean has been declared, and assigned a value using HasValue := Value.
Thanks. It's helped me to reduce code size at least 5 times.