Bagikan melalui


Conversion Module (Visual Basic)

The Conversion module contains the procedures used to perform various conversion operations.

Remarks

This module supports the Visual Basic language keywords and run-time library members that convert decimal numbers to other bases, numbers to strings, strings to numbers, and one data type to another.

Members

ErrorToString

Fix

Hex

Int

Oct

Str

Val

 

Example

This example uses the Hex function to return the hexadecimal value of a number.

Dim TestHex As String 
' Returns 5.
TestHex = Hex(5)
' Returns A.
TestHex = Hex(10)
' Returns 1CB.
TestHex = Hex(459)

See Also

Reference

Conversion Summary

Keywords and Members by Task

Visual Basic Language Keywords

Visual Basic Run-Time Library Members

Keywords Compared in Different Languages