Widening conversion - This is one in which the conversion is to a data type that can accommodate every possible value.
A widening conversion can be implicit or explicit.
Narrowing conversion - This is one in which the conversion is to a data type that does not accommodate every possible value
A narrowing conversion is always explicit.
The following line will not compile
Dim myInteger As Integer
myInteger = myDouble
You must use
myInteger = Ctype(myDouble, Integer)
© 2021 Better Solutions Limited. All Rights Reserved. © 2021 Better Solutions Limited TopPrevNext