Contents

조회 수 55134 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
DefSng A-Z
Dim a(10) As String, b(10), c(10), d(10), e(10) As String, f(10), g(10), h(10), pc, tmp As Variant, a1(10) As String, b1(10), c1(10), d1(10)
Private Sub Command1_Click()
    pc = pc + 1
    a(pc) = Text1.Text
    b(pc) = Text2.Text
    c(pc) = Text3.Text
    d(pc) = Text4.Text

    a1(pc) = Text1.Text
    b1(pc) = Text2.Text
    c1(pc) = Text3.Text
    d1(pc) = Text4.Text

    Text1.Text = ""
    Text2.Text = ""
    Text3.Text = ""
    Text4.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
                tmp = d(i): d(i) = d(j): d(j) = tmp
            End If
        Next j
    Next i

    For i = 1 To pc
        Select Case UCase(a(i))
            Case "A1": e(i) = "영업 1팀": z = 0.21
            Case "A2": e(i) = "영업 2팀": z = 0.23
            Case "A3": e(i) = "영업 3팀": z = 0.27
            Case "A4": e(i) = "영업 4팀": z = 0.29
            Case "A5": e(i) = "영업 5팀": z = 0.28
            Case "A6": e(i) = "영업 6팀": z = 0.25
        End Select

        f(i) = b(i) + c(i) + d(i)
        g(i) = b(i) * 15000 + c(i) * 30000 + d(i) * 25000

        h(i) = g(i) * z

        total = total + f(i)
    Next


    Form1.Hide

    Form2.Show
    Form2.Print "비번호:333"
    Form2.Print ""
    Form2.Print "부서코드", "부서명", "판매수량", "판매금액", "고과점수"

    For i = 1 To pc
        Form2.Print a(i), e(i), f(i), g(i), h(i)
    Next
    
    Form2.Print "전체 판매수량"; total
    Form2.Print ""
    Form2.Print ""
    Form2.Print "입력자료"
    
    For i = 1 To pc
        Form2.Print a1(i), b1(i), c1(i), d(i)
    Next
    
End Sub


?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
1173 Develop '2014 모바일 개발 트렌드' 발표자료입니다. file hooni 2014.10.02 974
1172 System/OS Apache CORS 설정 1 hooni 2020.09.04 2702
1171 Develop Aspect Oriented Programming in Objective-C hooni 2015.05.18 672
1170 System/OS asx미디어 정보 기록.. hooni 2003.04.23 20533
1169 System/OS CentOS 6.5 USB 설치 6 file hooni 2013.12.18 37672
1168 System/OS CentOS 에서 Cacti 설치하기 hooni 2015.01.02 1758
1167 System/OS Configure Postfix to Use Gmail SMTP on Ubuntu 18.04 file hooni 2020.02.07 1240
1166 Develop DDay Memo 1.9.4 소스코드 secret hooni 2015.10.03 0
1165 Etc EBS [수학영역] 미적분과 통계 기본 - 정규분포의 의미와 특징은? hooni 2015.04.20 1001
1164 System/OS Enable Safari Hidden Debug Menu in Mac OS X file hooni 2017.02.07 1133
1163 System/OS Enable the Develop Menu in Safari file hooni 2017.02.07 1061
1162 Develop GCM 사용하기 2 (단말에 GCM 구현하기) file hooni 2013.07.06 23248
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 ... 98 Next
/ 98