Contents

조회 수 61438 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

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

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
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


?

  1. [ios] Facebook Cache 갱신하는 함수

    Date2017.02.27 CategoryDevelop Byhooni Views1203
    Read More
  2. [ios] 동영상 플레이어 샘플 (for PIP Player)

    Date2017.03.15 CategoryDevelop Byhooni Views1293
    Read More
  3. Mac OS 에 Jenkins 설치하기 (Homebrew)

    Date2017.03.15 CategoryDevelop Byhooni Views8165
    Read More
  4. [ios] Xcode에서 특정 파일만 ARC 따로 설정하는 방법

    Date2017.03.29 CategoryDevelop Byhooni Views964
    Read More
  5. [mysql] 쿼리 실행시 ERROR 1366 (HY000) : incorrect string value : for column

    Date2017.03.30 CategoryDatabase Byhooni Views8803
    Read More
  6. [ios] NSString, RegularExpression Find/Replace

    Date2017.04.14 CategoryDevelop Byhooni Views856
    Read More
  7. [ios] Facebook SDK 로그인 설명

    Date2017.04.19 CategoryDevelop Byhooni Views1182
    Read More
  8. [linux] 초간단 Postfix, Covecot, SSL/TLS (SMTP)

    Date2017.12.11 CategorySystem/OS Byhooni Views9364
    Read More
  9. [mysql] ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

    Date2017.12.15 CategoryDatabase Byhooni Views1229
    Read More
  10. [ios] Requesting Location Permissions in iOS

    Date2018.08.18 CategoryDevelop Byhooni Views1620
    Read More
  11. 서버 확장을 위한 두 가지 방법

    Date2018.08.29 CategorySystem/OS Byhooni Views2118
    Read More
  12. 맥에서 포트 확인하고 닫기 (mac)

    Date2022.03.22 CategorySystem/OS Byhooni Views939
    Read More
Board Pagination Prev 1 2 3 4 5 6 7 Next
/ 7