Len Function

๋ฌธ์ž์—ด์˜ ๋ฌธ์ž ์ˆ˜๋‚˜ ๋ณ€์ˆ˜๋ฅผ ์ €์žฅํ•˜๋Š” ๋ฐ ํ•„์š”ํ•œ ๋ฐ”์ดํŠธ ์ˆ˜๋ฅผ ๊ตฌํ•ฉ๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:


Len (Text As String)

๋ฐ˜ํ™˜ ๊ฐ’:

Long

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

Text: ์ž„์˜์˜ ๋ฌธ์ž์—ด ์‹ ๋˜๋Š” ๋‹ค๋ฅธ ์œ ํ˜•์˜ ๋ณ€์ˆ˜์ž…๋‹ˆ๋‹ค.

Error codes:

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

์˜ˆ:


Sub ExampleLen
Dim sText as String
    sText = "Las Vegas"
    MsgBox Len(sText) REM Returns 9
End Sub

Please support us!