Type Namevariablename

This function returns a string that identifies the variable's type. The variable whose type you're examining with the TypeName function may have been declared implicitly or explicitly. Suppose you declare the following variables

Dim name As Integer Dim a

The following statements produce the results shown in bold:

Conso1e.WriteLine(TypeName(name)) Integer


Nothing a = "I'm a string" Conso1e.WriteLine(TypeName(a)) String

0 0

Post a comment