Quantcast
Channel: Visual COBOL - Forum - Recent Threads
Viewing all articles
Browse latest Browse all 4356

Nullables

$
0
0

When I try and set a nullable Decimal to zero I get the below error.  I did notice that if I parse the zero to a decimal it does work.

COBCH1624: cannot implicitly convert binary-char to type System.Nullable[Decimal]. 

01  testDecimaltypeNullable[typeDecimal] property.

method-id New

proceduredivision.

         set testDecimal to 0.

end method

Is this a problem with the compiler?  It seems that this code should work.


Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>