데이터 클래스 만들기
Option Explicit
Dim DayName(30) As String' 음력의 모든 날짜는 처음처럼
Dim MovthName(12) As String' 월명
Dim NongliData(99) As Long' 음력 데이터
Dim TianGan(9) As String' 천간 이름
Dim DiZhi(11) As String' 지반 이름
Dim ShuXiang(11) As String' 띠 이름
Dim MonthAdd(11) As Long' 양력 월 이전 일수
SetDayName 이 음력에 주는 값
Private Sub SetDayName()
Dim li_i As Long
DayName(0) = "*"
For Li _ I = 1 ~ 30
DayName(li_i) = Choose(li_i \ 11, "",","10 ","20 ","30 ") amp;; _
Mid ("123456789", Li _ I mod 12,1)' 배열의 값은 대문자
입니다다음
1 ~ 10 앞에 초자를 더한다. 21 ~ 29 앞에 20 을 더한다. 사람들의 습관에 더 잘 맞도록
For Li _ I = 1 ~ 10' 1 ~ 10 앞에 초자 추가
DayName(li_i) = "초기" amp;; DayName(li_i)
다음
For Li _ I = 21 ~ 29' 20 단어를 20 단어로 대체
DayName(li_i) = "20" amp;; Mid(DayName(li_i), 3,1)
다음
End Sub
Private Sub SetMovthName ()' 월 이름
Dim li_i As Long
MovthName(0) = "*"
For Li _ I = 1 ~ 12
Movthname (Li _ I) = choose (Li _ I \ 11, "",","10 ") amp;; Mid ("123456789", Li _ I mod 12,1)
다음
End Sub
Private Sub SetTinaGan()
TianGan(0) = "a"
>
TianGan(1) = "을"
TianGan(2) = "c"
TianGan(3) = "딩"
TianGan(4) = "e"
TianGan(5) = "자신"
TianGan(6) = "헵경"
TianGan(7) = "신"
TianGan(8) = "임임"
TianGan(9) = "정렬"
End Sub
Private Sub SetDiZhi()
디지 (0) = "자식"
디지 (1) =' 못생김'
디지 (2) =' 인인'
디지 (3) = "묘비"
디지 (4) = "진"
디지 (5) = "바바"
디지 (6) = "정오"
디지 (7) = "없음"
디지 (8) = "신청"
디지 (9) = "단일"
디지 (10) =' 술'
디지 (11) = "하이"
End Sub
Private Sub Setshuxiang()
ShuXiang(0) = "마우스"
ShuXiang(1) = "소"
ShuXiang(2) = "호랑이"
ShuXiang(3) = "토끼"
ShuXiang(4) = "용"
ShuXiang(5) = "뱀"
ShuXiang(6) = "말"
ShuXiang(7) = "양"
ShuXiang(8) = "원숭이"
ShuXiang(9) = "닭"
ShuXiang(10) = "개"
ShuXiang(11) = "돼지"
End Sub
Private Sub SetMonthAdd ()' 양력 월 이전 일 수
MonthAdd(0) = 0
MonthAdd(1) = 31
MonthAdd(2) = 59
MonthAdd(3) = 90
MonthAdd(4) = 120
MonthAdd(5) = 151
MonthAdd(6) = 181
MonthAdd(7) = 212
P >
MonthAdd(8) = 243
MonthAdd(9) = 273
MonthAdd(10) = 304
MonthAdd(11) = 334
End Sub
Private Sub SetNongliData()
음력 데이터
NongliData(0) = 2635
NongliData(1) = 333387
NongliData(2) = 1701
NongliData(3) = 1748
NongliData(4) = 267701
NongliData(5) = 694
NongliData(6) = 2391
NongliData(7) = 133423
NongliData(8) = 1175
NongliData(9) = 396438
NongliData(10) = 3402
NongliData(11) = 3749
NongliData(12) = 331177
NongliData(13) = 1453
NongliData(14) = 694
NongliData(15) = 201326
NongliData(16) = 2350
NongliData(17) = 465197
NongliData(18) = 3221
NongliData(19) = 3402
NongliData(20) = 400202
NongliData(21) = 2901
NongliData(22) = 1386
NongliData(23) = 267611
NongliData(24) = 605
NongliData(25) = 2349
NongliData(26) = 137515
NongliData(27) = 2709
NongliData(28) = 464533
NongliData(29) = 1738
NongliData(30) = 2901
NongliData(31) = 330421
NongliData(32) = 1242
NongliData(33) = 26
51
NongliData(34) = 199255
NongliData(35) = 1323
NongliData(36) = 529706
NongliData(37) = 3733
NongliData(38) = 1706
NongliData(39) = 398762
NongliData(40) = 2741
NongliData(41) = 1206
NongliData(42) = 267438
NongliData(43) = 2647
NongliData(44) = 1318
NongliData(45) = 204070
NongliData(46) = 3477
NongliData(47) = 461653
NongliData(48) = 1386
NongliData(49) = 2413
NongliData(50) = 330077
NongliData(51) = 1197
NongliData(52) = 2637
NongliData(53) = 268877
NongliData(54) = 3365
NongliData(55) = 531109
NongliData(56) = 2900
NongliData(57) = 2922
NongliData(58) = 398042
NongliData(59) = 2395
NongliData(60) = 1179
NongliData(61) = 267415
NongliData(62) = 2635
NongliData(63) = 661067
NongliData(64) = 1701
NongliData(65) = 1748
NongliData(66) = 398772
NongliData(67) = 2742
NongliData(68) = 2391
NongliData(69) = 330031
NongliData(70) = 1175
NongliData(71) = 1611
NongliData(72) = 200010
>
NongliData(73) = 3749
NongliData(74) = 527717
NongliData(75) = 1452
NongliData(76) = 2742
NongliData(77) = 332397
NongliData(78) = 2350
NongliData(79) = 3222
NongliData(80) = 268949
NongliData(81) = 3402
NongliData(82) = 3493
NongliData(83) = 133973
NongliData(84) = 1386
NongliData(85) = 464219
NongliData(86) = 605
NongliData(87) = 2349
NongliData(88) = 334123
NongliData(89) = 2709
NongliData(90) = 2890
NongliData(91) = 267946
NongliData(92) = 2773
NongliData(93) = 592565
NongliData(94) = 1210
NongliData(95) = 2651
NongliData(96) = 395863
NongliData(97) = 1323
NongliData(98) = 2707
NongliData(99) = 265877
End Sub
Private function l (byval data as string) as string' 은 윤월의 매월 일 수
를 반환합니다Dim ll_Year As Long
Dim ll_Movth As Long
Dim ll_Day As Long
Dim ll_TheDate As Long
Dim ll_isEnd As Long
Dim ll_m As Long
Dim ll_k As Long
Dim ll_n As Long
Dim bit As Long
Dim I As Long