Develop
2003.04.23 00:03
[vb] 비주얼 베이직 자격증용 ㅎㅎ
Views 61596 Comment 0
DefSng A-Z
Dim a(10), b(10), c(10), pc
----------------------------------------------------------------
Private Sub Command1_Click()
pc = pc + 1
a(pc) = Text1.Text
b(pc) = Text2.Text
c(pc) = Text3.Text
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus
End Sub
----------------------------------------------------------------
Private Sub Command2_Click()
Dim d(10), e(10), f(10), g(10)
For i = 1 To pc - 1
For j = i + 1 To pc
If a(i) > a(j) Then
tmp = a(i): a(i) = a(j): a(j) = tmp
tmp = b(i): b(i) = b(j): b(j) = tmp
tmp = c(i): c(i) = c(j): c(j) = tmp
End If
Next j
Next i
For i = 1 To pc
d(i) = c(i) - b(i)
e(i) = 2000
f(i) = d(i) * 50
g(i) = 2000 + f(i)
total = total + g(i)
Next
Form1.Hide
Form2.Show
Form2.Print "사용자번호", "전월 검침량", "금월 검침량", "사용량", "기본료", "사용금액", "납부금액"
For i = 1 To pc
Form2.Print a(i), b(i), c(i), d(i), e(i), f(i), g(i)
Next
Form2.Print "납부액 총계"; total
End Sub
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
20 | Develop |
[ios] 동영상 플레이어 샘플 (for PIP Player)
![]() |
hooni | 2017.03.15 | 1414 |
19 | Develop |
[ios] 동영상 플레이어 샘플 (for Remote Url)
![]() |
hooni | 2017.02.07 | 1770 |
18 | Develop |
[ios] 동영상 플레이어 샘플 (for Local File)
![]() |
hooni | 2017.02.07 | 1215 |
17 | Develop |
[ios] FlckrFeed Example App (Swift)
![]() |
hooni | 2016.11.27 | 1214 |
16 | Develop |
[ios][swift] 초간단 카달로그 앱 (Catalog App)
![]() |
hooni | 2016.06.27 | 7461 |
15 | Develop |
[ios][swift] 초간단 To-do Memo
![]() |
hooni | 2016.06.27 | 1197 |
14 | Develop |
[ios][swift] 초간단 TableView 샘플
![]() |
hooni | 2016.06.27 | 877 |
13 | Develop |
[ios] UUID 생성 + Key Chain 연동
![]() |
hooni | 2016.05.13 | 4793 |
12 | Develop | [ios] Did UIScrollView End Scrolling? | hooni | 2016.04.19 | 1180 |
11 | Develop | [ios] UIAlertView 초간단 샘플 ㅎㅎ | hooni | 2013.10.14 | 46207 |
10 | Develop |
[android] 점심 해결 앱 소스 코드 ㅋㅋ
![]() |
hooni | 2013.04.23 | 76506 |
9 | Develop | [vb] 비쥬얼 베이직으로.. | hooni | 2003.04.23 | 53135 |