Erl Function

ํ”„๋กœ๊ทธ๋žจ ์‹คํ–‰ ๋„์ค‘์— ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•œ ์ค„ ๋ฒˆํ˜ธ๋ฅผ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.

๊ตฌ๋ฌธ:


Erl

๋ฐ˜ํ™˜ ๊ฐ’:

Integer

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

์ฐธ๊ณ  ์•„์ด์ฝ˜

Erl ํ•จ์ˆ˜๋Š” ์ค„ ๋ ˆ์ด๋ธ”์ด ์•„๋‹ˆ๋ผ ์ค„ ๋ฒˆํ˜ธ๋งŒ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค.


์˜ˆ:


Sub ExampleError
on error goto ErrorHandler REM Set up error handler
Dim iVar As Integer
Dim sVar As String
REM Error caused by non-existent file
    iVar = Freefile
    Open "\file9879.txt" For Input As #iVar
    Line Input #iVar, sVar
    Close #iVar
    Exit Sub
ErrorHandler:
    MsgBox "Error " & err & ": " & error$ + chr(13) + "In line : " + Erl + chr(13) + Now , 16 ,"An error occurred"
End Sub

Please support us!