Str (function)

<< Click to Display Table of Contents >>

Str (function)

Str(Num)

Converts a numeric expression to a string.

If a positive number is passed, the resulting string starts with a space character. For negative numbers, a minus sign appears in this position.

See also: CStr, Format, Val

Example:

Sub Main

 Dim msg

 a = -1

 MsgBox "Number = " & Str(a)

 MsgBox "Abs(Number) =" & Str(Abs(a))

End Sub