■ 정적 서브 프로시저를 사용하는 방법을 보여준다.
▶ 예제 코드 (VB)
1 2 3 4 5 6 7 8 9 10 11 |
Private Static Sub Accumulate() Dim nAccumulator As Integer nAccumulator = nAccumulator + 10 Print nAccumulator End Sub |
■ 정적 서브 프로시저를 사용하는 방법을 보여준다.
▶ 예제 코드 (VB)
1 2 3 4 5 6 7 8 9 10 11 |
Private Static Sub Accumulate() Dim nAccumulator As Integer nAccumulator = nAccumulator + 10 Print nAccumulator End Sub |