Develop
2003.04.23 00:04
[vb] 비주얼 베이직 205페이지
Views 56147 Comment 0
DefSng A-Z
Dim a(10), b(10), c(10), d(10) As String, e(10), f(10), pc, a1(10), b1(10), c1(10), tmp As Variant
Private Sub Command1_Click()
pc = pc + 1
a(pc) = Text1.Text
b(pc) = Text2.Text
c(pc) = Text3.Text
a1(pc) = Text1.Text
b1(pc) = Text2.Text
c1(pc) = Text3.Text
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text1.SetFocus
End Sub
Private Sub Command2_Click()
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
Select Case a(i)
Case 1: d(i) = "볼펜"
Case 2: d(i) = "연필"
Case 3: d(i) = "지우개"
Case 4: d(i) = "노트"
End Select
e(i) = Int((b(i) - c(i)) / b(i) * 100 + 0.5)
Select Case e(i)
Case Is <= 30: x = 2
Case Is <= 40: x = 1.5
Case Is <= 50: x = 1.2
Case Is >= 51: x = 0: s = s + 1
End Select
f(i) = c(i) * x
h = h + f(i)
Next
k = pc - s
Form1.Hide
Form2.Show
Form2.Print "제품번호", "제품명", "전월재고량", "출고수량", "재고율", "발주량"
Form2.Print ""
For i = 1 To pc
Form2.Print a(i), d(i), b(i), c(i), e(i), f(i)
Next
Form2.Print ""
Form2.Print "발주건수"; k
Form2.Print "발주량합계"; h
Form2.Print ""
Form2.Print ""
Form2.Print "입력자료"
For i = 1 To pc
Form2.Print a1(i), b1(i), c1(i)
Next
End Sub
No. | Category | Subject | Author | Date | Views |
---|---|---|---|---|---|
37 | Develop |
[ios][swift] 초간단 TableView 샘플
![]() |
hooni | 2016.06.27 | 878 |
36 | Develop | [ios] 여러 버전의 Xcode 사용하기 | hooni | 2022.05.28 | 878 |
35 | Develop | [swift] 실행시간 측정하기 | hooni | 2021.09.14 | 865 |
34 | Develop | [ios] Crashlytics, Fabfic 설치/설정 | hooni | 2016.07.21 | 851 |
33 | Develop |
정리할 자료.
![]() |
hooni | 2015.07.02 | 831 |
32 | Develop | [ios] 앱에서 설정화면 호출하기 | hooni | 2015.04.07 | 827 |
31 | Develop |
[Javascript][Ajax] 자바스크립트 강의 산출물
![]() |
hooni | 2019.10.05 | 815 |
30 | Develop | [ios] WWDC 2015 샘플 소스 코드 통합파일 | hooni | 2015.07.20 | 812 |
29 | Develop |
[ios] 비디오,네트워크,소셜로그인 테스트
![]() |
hooni | 2017.04.04 | 810 |
28 | Develop | [js] Text 값을 클립보드에 복사하기 | hooni | 2020.10.10 | 807 |
27 | Develop |
[matlab] 정보은닉 스테가노그래피(Steganography) 수업
![]() |
hooni | 2016.10.03 | 800 |
26 | Develop |
[ios] VIN Scanner (VIN barcode) 스캐너
![]() |
hooni | 2017.09.16 | 795 |