Download presentation
Presentation is loading. Please wait.
Published byAnnice Pierce Modified over 8 years ago
1
Visual Basic 6.0 – (I) 정보물리
2
프로시져, 함수, 메소드 프로시져 : Public Sub Multiply (X As Integer,..) Do something End Sub Return 값 ( 반환값 ) 이 없다.
3
프로시져, 함수, 메소드 함수 (Function) Public Function Multiply (X As Integer,..) Do something Multiply=Some_Value End Function 반환값이 있다.
4
프로시져, 함수, 메소드 메소드 (Method) 특정 개채에 대한 특정한 기능 수행 Ex.) frmMyForm.Cls
5
의사 결정문, 조건 분기문 If 문 If A=1 Then Do something Else Do another thing End If
6
의사 결정문, 조건 분기문 Select Case 문 Select Case X Case 0 Do Something Case 1 Do Another thing Case 2 Do Some other thing …………
7
Loops Do While … Loop Dim Counter Counter=1 Do While Counter<1001 Counter=Counter+1 Loop
8
Loops Do … Loop While Dim Counter Counter=1 Do Counter=Counter+1 무조건 한번은 실행 !! Loop While Counter<1001
9
Loops For … Next 문 Dim I Dim Sum For I=1 to 100 Step 2 Sum=Sum+I Next
10
Loops 탈출 Exit For For 문 강제 탈출 Exit Do Do 문 강제 탈출 Dim I For I=1 To 1000 Do something If I=500 Then Exit For End If Next
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.