B
BobRoyAce
I am using VB.NET and I have a variable that is defined as Nullable(Of
Single) as follows:
Dim fMyNullableSingle as Nullable(Of Single)
Then, I have another variable as follows:
Dim fCumulativeExpectedAmt As Single = 0
When I make the following assignment:
fMyNullableSingle = fCumulativeExpectedAmt
the end result is that fMyNullableSingle is Nothing. So, later, when I
try to assign it to another non-nullable variable, it fails.For
example...
Dim fMyNonNullableSingle as Single
fMyNonNullableSingle = fMyNullableSingle
causes an Exception.
How do I correct this?
Single) as follows:
Dim fMyNullableSingle as Nullable(Of Single)
Then, I have another variable as follows:
Dim fCumulativeExpectedAmt As Single = 0
When I make the following assignment:
fMyNullableSingle = fCumulativeExpectedAmt
the end result is that fMyNullableSingle is Nothing. So, later, when I
try to assign it to another non-nullable variable, it fails.For
example...
Dim fMyNonNullableSingle as Single
fMyNonNullableSingle = fMyNullableSingle
causes an Exception.
How do I correct this?