'======================================================
' 주민번호 검증 함수
'======================================================
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 일수도 있겠네요..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7430 |
|
10년 전 | 4922 | |
| 7429 | 10년 전 | 1750 | ||
| 7428 |
멋진남자임
|
10년 전 | 1124 | |
| 7427 |
sdflksdj2
|
11년 전 | 785 | |
| 7426 | 11년 전 | 1327 | ||
| 7425 | 11년 전 | 1354 | ||
| 7424 | 11년 전 | 1020 | ||
| 7423 |
SeungYeon
|
11년 전 | 537 | |
| 7422 | 11년 전 | 777 | ||
| 7421 |
sdflksdj2
|
11년 전 | 654 | |
| 7420 | 11년 전 | 943 | ||
| 7419 |
|
11년 전 | 1362 | |
| 7418 |
멋진남자임
|
11년 전 | 1376 | |
| 7417 | 11년 전 | 572 | ||
| 7416 |
senseme
|
11년 전 | 1191 | |
| 7415 | 11년 전 | 937 | ||
| 7414 | 11년 전 | 688 | ||
| 7413 | 11년 전 | 4819 | ||
| 7412 | 11년 전 | 4388 | ||
| 7411 |
holla
|
11년 전 | 869 | |
| 7410 | 11년 전 | 4214 | ||
| 7409 | 11년 전 | 3897 | ||
| 7408 | 11년 전 | 4250 | ||
| 7407 | 11년 전 | 5030 | ||
| 7406 | 11년 전 | 4700 | ||
| 7405 | 11년 전 | 4259 | ||
| 7404 | 11년 전 | 726 | ||
| 7403 | 11년 전 | 5640 | ||
| 7402 | 11년 전 | 1467 | ||
| 7401 |
|
11년 전 | 949 | |
| 7400 | 11년 전 | 2953 | ||
| 7399 |
멋진남자임
|
11년 전 | 880 | |
| 7398 |
파랑새1597
|
11년 전 | 2629 | |
| 7397 | 11년 전 | 2232 | ||
| 7396 |
basketball
|
11년 전 | 1327 | |
| 7395 | 11년 전 | 1570 | ||
| 7394 | 11년 전 | 894 | ||
| 7393 | 11년 전 | 2039 | ||
| 7392 | 11년 전 | 817 | ||
| 7391 |
잘살아보자
|
11년 전 | 5321 | |
| 7390 |
잘살아보자
|
11년 전 | 2187 | |
| 7389 |
잘살아보자
|
11년 전 | 3299 | |
| 7388 |
파랑새1597
|
11년 전 | 897 | |
| 7387 | 11년 전 | 1073 | ||
| 7386 |
프리랜서퍼블리셔
|
11년 전 | 948 | |
| 7385 | 11년 전 | 1551 | ||
| 7384 |
울라라라우
|
11년 전 | 874 | |
| 7383 | 11년 전 | 1518 | ||
| 7382 |
잘살아보자
|
11년 전 | 4199 | |
| 7381 |
잘살아보자
|
11년 전 | 1963 | |
| 7380 |
잘살아보자
|
11년 전 | 1914 | |
| 7379 |
잘살아보자
|
11년 전 | 5877 | |
| 7378 |
senseme
|
11년 전 | 1852 | |
| 7377 |
잘살아보자
|
11년 전 | 2710 | |
| 7376 | 11년 전 | 2361 | ||
| 7375 |
잘살아보자
|
11년 전 | 1022 | |
| 7374 |
잘살아보자
|
11년 전 | 3118 | |
| 7373 |
잘살아보자
|
11년 전 | 2450 | |
| 7372 |
잘살아보자
|
11년 전 | 5816 | |
| 7371 |
잘살아보자
|
11년 전 | 3441 | |
| 7370 |
잘살아보자
|
11년 전 | 1884 | |
| 7369 |
잘살아보자
|
11년 전 | 2145 | |
| 7368 |
ksdhtm56
|
11년 전 | 524 | |
| 7367 | 11년 전 | 1390 | ||
| 7366 | 11년 전 | 905 | ||
| 7365 | 11년 전 | 3508 | ||
| 7364 |
잘살아보자
|
11년 전 | 1358 | |
| 7363 |
잘살아보자
|
11년 전 | 1324 | |
| 7362 |
잘살아보자
|
11년 전 | 1466 | |
| 7361 | 11년 전 | 3567 | ||
| 7360 | 11년 전 | 3530 | ||
| 7359 | 11년 전 | 3359 | ||
| 7358 |
멋진남자임
|
11년 전 | 997 | |
| 7357 | 11년 전 | 3379 | ||
| 7356 | 11년 전 | 2579 | ||
| 7355 | 11년 전 | 3151 | ||
| 7354 |
파랑새1597
|
11년 전 | 623 | |
| 7353 |
잘살아보자
|
11년 전 | 2394 | |
| 7352 |
잘살아보자
|
11년 전 | 2384 | |
| 7351 |
잘살아보자
|
11년 전 | 2459 | |
| 7350 |
잘살아보자
|
11년 전 | 1437 | |
| 7349 |
잘살아보자
|
11년 전 | 1921 | |
| 7348 |
잘살아보자
|
11년 전 | 1243 | |
| 7347 |
잘살아보자
|
11년 전 | 1052 | |
| 7346 |
멋진남자임
|
11년 전 | 1624 | |
| 7345 | 11년 전 | 956 | ||
| 7344 | 11년 전 | 3836 | ||
| 7343 | 11년 전 | 3607 | ||
| 7342 | 11년 전 | 1233 | ||
| 7341 | 11년 전 | 2485 | ||
| 7340 |
|
11년 전 | 900 | |
| 7339 | 11년 전 | 1711 | ||
| 7338 | 11년 전 | 3315 | ||
| 7337 | 11년 전 | 3613 | ||
| 7336 | 11년 전 | 4540 | ||
| 7335 | 11년 전 | 935 | ||
| 7334 | 11년 전 | 1500 | ||
| 7333 | 11년 전 | 2905 | ||
| 7332 |
|
11년 전 | 1075 | |
| 7331 |
KeePin뽁이
|
11년 전 | 1062 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기