Implicit & Explicit & data type conversion methods


Implicit  and  Explicit
The Visual Basic compiler provides three options that determine how it handles variables:
◆ The Explicit option indicates whether you will declare all variables.
◆ The Strict option indicates whether all variables will be of a specific type.
◆ The Infer option indicates whether the compiler should determine the type of a variable
from its value.

Methods to convert data type from one to another.


Dim A As Integer
Dim B As Double
B = Convert.ToDouble(A)

Dim C As Single = Convert.ToSingle(A / B)


Related

VB.NET 6945202624143735253

Post a Comment

emo-but-icon

item
href="http://www.ariyan.org">Wordpress