Str Function
Converts a numeric expression into a string.
āļāˇāļģāļ āļģāˇāļāˇāļē:
CSng (Expression)
āļāļ´āˇāˇ āļŊāļļāˇāļ¯āˇāļą āļ āļāļē:
String
āļ´āļģāˇāļ¸āˇāļāˇāļąāˇ:
Expression: āļ āļąāˇ āļŊāļāˇāļĢāˇ āˇāˇāļŊāˇ āˇāˇ āˇāļāļāˇâāļēāˇāļāˇāļ¸āļ āļ´āˇâāļģāļāˇāˇāļąāļēāļāˇ.
The Str function converts a numeric variable, or the result of a calculation into a string. Negative numbers are preceded by a minus sign. Positive numbers are preceded by a space (instead of the plus sign).
āļāļ¯āˇāˇāļģāļĢāļē:
Sub ExampleStr
Dim iVar As Single
Dim sVar As String
iVar = 123.123
sVar = LTrim(Str(iVar))
MsgBox sVar & chr(13) & Str(iVar)
End Sub