CStr Function

μž„μ˜μ˜ 숫자 식을 λ¬Έμžμ—΄ μ‹μœΌλ‘œ λ³€ν™˜ν•©λ‹ˆλ‹€.

ꡬ문:


CStr (Expression)

λ°˜ν™˜ κ°’:

String

맀개 λ³€μˆ˜:

Expression: λ³€ν™˜ν•  μž„μ˜μ˜ μœ νš¨ν•œ λ¬Έμžμ—΄ λ˜λŠ” 숫자 μ‹μž…λ‹ˆλ‹€.

식 μœ ν˜• 및 λ³€ν™˜ λ°˜ν™˜

Boolean :

True λ˜λŠ” False둜 ν‰κ°€λ˜λŠ” λ¬Έμžμ—΄μž…λ‹ˆλ‹€.

Date :

λ‚ μ§œμ™€ μ‹œκ°„μ„ ν¬ν•¨ν•˜λŠ” λ¬Έμžμ—΄μž…λ‹ˆλ‹€.

Null :

λŸ°νƒ€μž„ 였λ₯˜μž…λ‹ˆλ‹€.

Empty :

λ¬Έμžκ°€ μ—†λŠ” λ¬Έμžμ—΄μž…λ‹ˆλ‹€.

Any :

λ¬Έμžμ—΄λ‘œμ„œμ˜ ν•΄λ‹Ή μˆ«μžμž…λ‹ˆλ‹€.


뢀동 μ†Œμˆ˜μ  숫자의 끝 뢀뢄에 μžˆλŠ” 0은 ν‘œμ‹œλœ λ¬Έμžμ—΄μ— ν¬ν•¨λ˜μ§€ μ•ŠμŠ΅λ‹ˆλ‹€.

Error codes:

5 잘λͺ»λœ ν”„λ‘œμ‹œμ € ν˜ΈμΆœμž…λ‹ˆλ‹€.

예:


Sub ExampleCSTR
Dim sVar As String
    MsgBox CDbl(1234.5678)
    MsgBox CInt(1234.5678)
    MsgBox CLng(1234.5678)
    MsgBox CSng(1234.5678)
    sVar = CStr(1234.5678)
    MsgBox sVar
End Sub

Please support us!