1 / 10

Visual Basic 6.0 – (I)

Visual Basic 6.0 – (I). 정보물리. 프로시져 , 함수 , 메소드. 프로시져 : Public Sub Multiply (X As Integer,..) Do something End Sub Return 값 ( 반환값 ) 이 없다. 프로시져 , 함수 , 메소드. 함수 (Function) Public Function Multiply (X As Integer,..) Do something Multiply=Some_Value End Function 반환값이 있다.

Download Presentation

Visual Basic 6.0 – (I)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  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

More Related