首页 > lang > str 
 en fr de es it nl pl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh eo
前一个  下一个  编辑  重命名  撤销  搜索  管理  
文档  
警告! 该页面未翻译。  参见英文版 
Str$
String = Str$ ( Expression )
String = Str ( Expression )

Converts an expression into its printable string representation. It is the exact contrary of Val.

The current localization is used to convert numbers and dates.

Example

' Print on standard output or in a message

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

参见

Conversion Functions, Localization and Translation Functions, PRINT