■ 함수 프로시저 사용하기

----------------------------------------------------------------------------------------------------

Public Function DisplayMessage(tbTarget, strMessage As String) As Boolean

 

    DisplayMessage = False

 

    On Error GoTo errorLabel

    

    If TypeOf tbTarget Is TextBox Then

 

        tbTarget.Text = strMessage

 

    End If

    

    DisplayMessage = True

    

    Exit Function

 

errorLabel:

 

    Err.Raise vbError + 1001, Err.Description

 

End Function

----------------------------------------------------------------------------------------------------

Posted by 사용자 icodebroker
TAG