Str$
String = Str$ ( Expression )
String = Str ( Expression )
转换表达式Expression为其可打印的字符串形式。作用与
Val函数相反。
目前本地化被用于转换数字和日期。
Example
' 打印到标准输出或者消息
Public Const ON_STDOUT As Integer = 1
Public CONST ON_MESSAGE As Integer = 2
Sub PrintOn(Where As Integer, What As Variant)
If Where = ON_STDOUT Then
Print What
Else If Where = ON_MESSAGE Then
Message(Str$(What))
Endif
End
参见