共用方式為


Returns for CStr

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

If expression is

CStr returns

Boolean

A string containing True or False

Date

A string containing a date in the short date format of your system

Null

A run-time error

Empty

A zero-length string ("")

Error

A string containing the word Error followed by the error number

Other numeric

A string containing the number