'======================================================
' 주민번호 검증 함수
'======================================================
Public Function IsJuminNum(ByVal strJuminNum As String) As Boolean
Dim iSum As Integer
Dim iRe As Integer
On Error GoTo Wrong_Number
strJuminNum = Char_Remove(strJuminNum)
If Len(strJuminNum) <> 13 Then
IsJuminNum = False
Exit Function
End If
If CInt(Mid(strJuminNum, 3, 2)) < 0 Or CInt(Mid(strJuminNum, 3, 2)) > 12 Or _
CInt(Mid(strJuminNum, 5, 2)) < 0 Or CInt(Mid(strJuminNum, 5, 2)) > 31 Or _
CInt(Mid(strJuminNum, 7, 1)) < 0 Or CInt(Mid(strJuminNum, 7, 1)) > 4 Then
IsJuminNum = False
Exit Function
End If
iSum = CInt(Mid(strJuminNum, 1, 1)) * 2 + _
CInt(Mid(strJuminNum, 2, 1)) * 3 + _
CInt(Mid(strJuminNum, 3, 1)) * 4 + _
CInt(Mid(strJuminNum, 4, 1)) * 5 + _
CInt(Mid(strJuminNum, 5, 1)) * 6 + _
CInt(Mid(strJuminNum, 6, 1)) * 7 + _
CInt(Mid(strJuminNum, 7, 1)) * 8 + _
CInt(Mid(strJuminNum, 8, 1)) * 9 + _
CInt(Mid(strJuminNum, 9, 1)) * 2 + _
CInt(Mid(strJuminNum, 10, 1)) * 3 + _
CInt(Mid(strJuminNum, 11, 1)) * 4 + _
CInt(Mid(strJuminNum, 12, 1)) * 5
iSum = iSum Mod 11
iRe = 11 - iSum
If iRe > 9 Then
iRe = iRe Mod 10
End If
iSum = CInt(Mid(strJuminNum, 13, 1))
If iSum = iRe Then
IsJuminNum = True
Else
IsJuminNum = False
End If
Exit Function
Wrong_Number:
IsJuminNum = False
End Function
'======================================================
' 사업자번호 검증 함수
'======================================================
Public Function IsSaupjaNo(ByVal strSaupjaNo As String) As Boolean
Dim iSum As Integer
Dim iRe As Integer
On Error GoTo Wrong_Number
strSaupjaNo = Char_Remove(strSaupjaNo)
If Len(strSaupjaNo) <> 10 Then
IsSaupjaNo = False
Exit Function
End If
iSum = ((CInt(Mid(strSaupjaNo, 9, 1)) * 5) \ 10) + _
((CInt(Mid(strSaupjaNo, 9, 1)) * 5) Mod 10) + _
CInt(Mid(strSaupjaNo, 1, 1)) + CInt(Mid(strSaupjaNo, 4, 1)) + CInt(Mid(strSaupjaNo, 7, 1)) + _
(CInt(Mid(strSaupjaNo, 2, 1)) + CInt(Mid(strSaupjaNo, 5, 1)) + CInt(Mid(strSaupjaNo, 8, 1))) * 3 + _
(CInt(Mid(strSaupjaNo, 3, 1)) + CInt(Mid(strSaupjaNo, 6, 1))) * 7
iSum = iSum Mod 10
If CInt(Mid(strSaupjaNo, 10, 1)) = ((10 - iSum) Mod 10) Then
IsSaupjaNo = True
Else
IsSaupjaNo = False
End If
Exit Function
Wrong_Number:
IsSaupjaNo = False
End Function<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:46:12 기타에서 이동 됨]</div>
' 주민번호 검증 함수
'======================================================
Public Function IsJuminNum(ByVal strJuminNum As String) As Boolean
Dim iSum As Integer
Dim iRe As Integer
On Error GoTo Wrong_Number
strJuminNum = Char_Remove(strJuminNum)
If Len(strJuminNum) <> 13 Then
IsJuminNum = False
Exit Function
End If
If CInt(Mid(strJuminNum, 3, 2)) < 0 Or CInt(Mid(strJuminNum, 3, 2)) > 12 Or _
CInt(Mid(strJuminNum, 5, 2)) < 0 Or CInt(Mid(strJuminNum, 5, 2)) > 31 Or _
CInt(Mid(strJuminNum, 7, 1)) < 0 Or CInt(Mid(strJuminNum, 7, 1)) > 4 Then
IsJuminNum = False
Exit Function
End If
iSum = CInt(Mid(strJuminNum, 1, 1)) * 2 + _
CInt(Mid(strJuminNum, 2, 1)) * 3 + _
CInt(Mid(strJuminNum, 3, 1)) * 4 + _
CInt(Mid(strJuminNum, 4, 1)) * 5 + _
CInt(Mid(strJuminNum, 5, 1)) * 6 + _
CInt(Mid(strJuminNum, 6, 1)) * 7 + _
CInt(Mid(strJuminNum, 7, 1)) * 8 + _
CInt(Mid(strJuminNum, 8, 1)) * 9 + _
CInt(Mid(strJuminNum, 9, 1)) * 2 + _
CInt(Mid(strJuminNum, 10, 1)) * 3 + _
CInt(Mid(strJuminNum, 11, 1)) * 4 + _
CInt(Mid(strJuminNum, 12, 1)) * 5
iSum = iSum Mod 11
iRe = 11 - iSum
If iRe > 9 Then
iRe = iRe Mod 10
End If
iSum = CInt(Mid(strJuminNum, 13, 1))
If iSum = iRe Then
IsJuminNum = True
Else
IsJuminNum = False
End If
Exit Function
Wrong_Number:
IsJuminNum = False
End Function
'======================================================
' 사업자번호 검증 함수
'======================================================
Public Function IsSaupjaNo(ByVal strSaupjaNo As String) As Boolean
Dim iSum As Integer
Dim iRe As Integer
On Error GoTo Wrong_Number
strSaupjaNo = Char_Remove(strSaupjaNo)
If Len(strSaupjaNo) <> 10 Then
IsSaupjaNo = False
Exit Function
End If
iSum = ((CInt(Mid(strSaupjaNo, 9, 1)) * 5) \ 10) + _
((CInt(Mid(strSaupjaNo, 9, 1)) * 5) Mod 10) + _
CInt(Mid(strSaupjaNo, 1, 1)) + CInt(Mid(strSaupjaNo, 4, 1)) + CInt(Mid(strSaupjaNo, 7, 1)) + _
(CInt(Mid(strSaupjaNo, 2, 1)) + CInt(Mid(strSaupjaNo, 5, 1)) + CInt(Mid(strSaupjaNo, 8, 1))) * 3 + _
(CInt(Mid(strSaupjaNo, 3, 1)) + CInt(Mid(strSaupjaNo, 6, 1))) * 7
iSum = iSum Mod 10
If CInt(Mid(strSaupjaNo, 10, 1)) = ((10 - iSum) Mod 10) Then
IsSaupjaNo = True
Else
IsSaupjaNo = False
End If
Exit Function
Wrong_Number:
IsSaupjaNo = False
End Function<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:46:12 기타에서 이동 됨]</div>
댓글 2개
디귿소프트
14년 전
베이직인가요?
14년 전
ASP 도 베이직문법이라.. ASP 일수도 있겠네요..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 55 | ||
| 8229 | 9년 전 | 53 | ||
| 8228 |
커네드커네드
|
9년 전 | 100 | |
| 8227 | 9년 전 | 110 | ||
| 8226 | 9년 전 | 145 | ||
| 8225 | 9년 전 | 134 | ||
| 8224 | 9년 전 | 132 | ||
| 8223 | 9년 전 | 92 | ||
| 8222 |
|
9년 전 | 162 | |
| 8221 | 9년 전 | 77 | ||
| 8220 | 9년 전 | 78 | ||
| 8219 | 9년 전 | 83 | ||
| 8218 | 9년 전 | 112 | ||
| 8217 |
star3840
|
9년 전 | 99 | |
| 8216 | 9년 전 | 138 | ||
| 8215 | 9년 전 | 89 | ||
| 8214 | 9년 전 | 208 | ||
| 8213 | 9년 전 | 142 | ||
| 8212 | 9년 전 | 57 | ||
| 8211 | 9년 전 | 223 | ||
| 8210 | 9년 전 | 220 | ||
| 8209 | 9년 전 | 320 | ||
| 8208 | 9년 전 | 190 | ||
| 8207 | 9년 전 | 202 | ||
| 8206 |
|
9년 전 | 169 | |
| 8205 | 9년 전 | 149 | ||
| 8204 | 9년 전 | 110 | ||
| 8203 | 9년 전 | 204 | ||
| 8202 | 9년 전 | 128 | ||
| 8201 | 9년 전 | 166 | ||
| 8200 | 9년 전 | 137 | ||
| 8199 | 9년 전 | 188 | ||
| 8198 | 9년 전 | 158 | ||
| 8197 | 9년 전 | 137 | ||
| 8196 | 9년 전 | 522 | ||
| 8195 | 9년 전 | 136 | ||
| 8194 | 9년 전 | 269 | ||
| 8193 | 9년 전 | 136 | ||
| 8192 | 9년 전 | 164 | ||
| 8191 | 9년 전 | 118 | ||
| 8190 | 9년 전 | 114 | ||
| 8189 | 9년 전 | 167 | ||
| 8188 | 9년 전 | 116 | ||
| 8187 | 9년 전 | 121 | ||
| 8186 | 9년 전 | 133 | ||
| 8185 | 9년 전 | 293 | ||
| 8184 | 9년 전 | 87 | ||
| 8183 | 9년 전 | 309 | ||
| 8182 | 9년 전 | 142 | ||
| 8181 | 9년 전 | 114 | ||
| 8180 | 9년 전 | 678 | ||
| 8179 | 9년 전 | 475 | ||
| 8178 | 9년 전 | 278 | ||
| 8177 |
kiplayer
|
9년 전 | 287 | |
| 8176 | 9년 전 | 332 | ||
| 8175 | 9년 전 | 204 | ||
| 8174 | 9년 전 | 211 | ||
| 8173 | 9년 전 | 324 | ||
| 8172 | 9년 전 | 170 | ||
| 8171 | 9년 전 | 162 | ||
| 8170 | 9년 전 | 282 | ||
| 8169 |
커네드커네드
|
9년 전 | 246 | |
| 8168 | 9년 전 | 299 | ||
| 8167 | 9년 전 | 305 | ||
| 8166 | 9년 전 | 218 | ||
| 8165 | 9년 전 | 148 | ||
| 8164 | 9년 전 | 280 | ||
| 8163 | 9년 전 | 266 | ||
| 8162 | 9년 전 | 274 | ||
| 8161 | 9년 전 | 272 | ||
| 8160 |
|
9년 전 | 468 | |
| 8159 | 9년 전 | 392 | ||
| 8158 | 9년 전 | 209 | ||
| 8157 | 9년 전 | 345 | ||
| 8156 | 9년 전 | 257 | ||
| 8155 | 9년 전 | 233 | ||
| 8154 |
00년생용띠
|
9년 전 | 578 | |
| 8153 | 9년 전 | 209 | ||
| 8152 |
|
9년 전 | 386 | |
| 8151 | 9년 전 | 387 | ||
| 8150 | 9년 전 | 480 | ||
| 8149 |
Jangfolk
|
9년 전 | 316 | |
| 8148 | 9년 전 | 149 | ||
| 8147 | 9년 전 | 358 | ||
| 8146 | 9년 전 | 412 | ||
| 8145 | 9년 전 | 344 | ||
| 8144 | 9년 전 | 312 | ||
| 8143 | 9년 전 | 165 | ||
| 8142 | 9년 전 | 413 | ||
| 8141 | 9년 전 | 361 | ||
| 8140 | 9년 전 | 908 | ||
| 8139 | 9년 전 | 233 | ||
| 8138 |
전갈자리남자
|
9년 전 | 377 | |
| 8137 | 9년 전 | 359 | ||
| 8136 | 9년 전 | 719 | ||
| 8135 |
|
9년 전 | 770 | |
| 8134 |
PlayPixel
|
9년 전 | 482 | |
| 8133 |
|
9년 전 | 420 | |
| 8132 | 9년 전 | 431 | ||
| 8131 | 9년 전 | 788 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기