Str Function

์ˆซ์ž ์‹์„ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•ฉ๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:


Str (Expression)

๋ฐ˜ํ™˜ ๊ฐ’:

String

๋งค๊ฐœ ๋ณ€์ˆ˜:

Expression: ์ž„์˜์˜ ์ˆซ์ž ์‹์ž…๋‹ˆ๋‹ค.

Str ํ•จ์ˆ˜๋Š” ์ˆซ์ž ๋ณ€์ˆ˜๋‚˜ ๊ณ„์‚ฐ ๊ฒฐ๊ณผ๋ฅผ ๋ฌธ์ž์—ด๋กœ ๋ณ€ํ™˜ํ•ฉ๋‹ˆ๋‹ค. ์Œ์ˆ˜ ์•ž์—๋Š” ๋นผ๊ธฐ ๊ธฐํ˜ธ๊ฐ€ ์˜ต๋‹ˆ๋‹ค. ์–‘์ˆ˜ ์•ž์—๋Š” ๋”ํ•˜๊ธฐ ๊ธฐํ˜ธ ๋Œ€์‹  ๊ณต๋ฐฑ์ด ์˜ต๋‹ˆ๋‹ค.

Error codes:

5 ์ž˜๋ชป๋œ ํ”„๋กœ์‹œ์ € ํ˜ธ์ถœ์ž…๋‹ˆ๋‹ค.

์˜ˆ:


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

Please support us!