Hello,
I have to set a value to the property of a dotnet variable. The property's data type is Nullable<decimal> which is represented as (dotnet) System.Nullable`1.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
I define a variable with that data type but cannot instantiate or set a primitive value (say 2.0, 3.0 ect.) to it.
Please help!
Cem Karaer @ Pargesoft
Dynamics NAV Developer since 2005
0
Answers
Unfortunately I found no standard way to accomplish this. So I created a helper class to statically cast any decimal value to Nullable<decimal>. Here is the complete code of the class: The only thing to do is to use that dll in NAV as follows:
So it works like a charm!
Dynamics NAV Developer since 2005
Thanks for a solution! Will be helpful!!!