Chr Function

μ§€μ •ν•œ 문자 μ½”λ“œμ— ν•΄λ‹Ήν•˜λŠ” 문자λ₯Ό ν‘œμ‹œν•©λ‹ˆλ‹€.

ꡬ문:

Chr(Expression As Integer)

λ°˜ν™˜ κ°’:

String

맀개 λ³€μˆ˜:

Expression: μœ νš¨ν•œ 8λΉ„νŠΈ ASCII κ°’(0-255) λ˜λŠ” 16λΉ„νŠΈ μœ λ‹ˆμ½”λ“œ 값을 λ‚˜νƒ€λ‚΄λŠ” 숫자 λ³€μˆ˜μž…λ‹ˆλ‹€.

νŠΉμˆ˜ν•œ μ œμ–΄ μ‹œν€€μŠ€λ₯Ό ν”„λ¦°ν„°λ‚˜ λ‹€λ₯Έ 좜λ ₯ μ›λ³ΈμœΌλ‘œ 보내렀면 Chr$ ν•¨μˆ˜λ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€. λ˜ν•œ 이 ν•¨μˆ˜λ₯Ό μ‚¬μš©ν•˜μ—¬ λ”°μ˜΄ν‘œλ₯Ό λ¬Έμžμ—΄ 식에 μ‚½μž…ν•  수 μžˆμŠ΅λ‹ˆλ‹€.

Error codes:

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

예:

Sub ExampleChr

    REM This example inserts quotation marks (ASCII value 34) in a string.

    MsgBox "A "+ Chr$(34)+"short" + Chr$(34)+" trip."

    REM The printout appears in the dialog as: A "short" trip.

End Sub

ASC