'======================================================
' 주민번호 검증 함수
'======================================================
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 일수도 있겠네요..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 3030 | 14년 전 | 1177 | ||
| 3029 |
|
14년 전 | 1297 | |
| 3028 | 14년 전 | 1047 | ||
| 3027 | 14년 전 | 856 | ||
| 3026 | 14년 전 | 1042 | ||
| 3025 |
마케팅메지션
|
14년 전 | 1161 | |
| 3024 | 14년 전 | 866 | ||
| 3023 | 14년 전 | 853 | ||
| 3022 |
|
14년 전 | 1227 | |
| 3021 | 14년 전 | 1023 | ||
| 3020 | 14년 전 | 915 | ||
| 3019 | 14년 전 | 1072 | ||
| 3018 | 14년 전 | 1242 | ||
| 3017 |
마케팅메지션
|
14년 전 | 941 | |
| 3016 |
|
14년 전 | 975 | |
| 3015 | 14년 전 | 669 | ||
| 3014 | 14년 전 | 888 | ||
| 3013 | 14년 전 | 1103 | ||
| 3012 | 14년 전 | 932 | ||
| 3011 | 14년 전 | 928 | ||
| 3010 | 14년 전 | 1147 | ||
| 3009 |
마케팅메지션
|
14년 전 | 1660 | |
| 3008 | 14년 전 | 589 | ||
| 3007 | 14년 전 | 1024 | ||
| 3006 |
마케팅메지션
|
14년 전 | 1001 | |
| 3005 |
마케팅메지션
|
14년 전 | 900 | |
| 3004 | 14년 전 | 882 | ||
| 3003 |
마케팅메지션
|
14년 전 | 996 | |
| 3002 | 14년 전 | 782 | ||
| 3001 | 14년 전 | 2011 | ||
| 3000 | 14년 전 | 779 | ||
| 2999 | 14년 전 | 1682 | ||
| 2998 | 14년 전 | 768 | ||
| 2997 |
|
14년 전 | 859 | |
| 2996 | 14년 전 | 942 | ||
| 2995 | 14년 전 | 896 | ||
| 2994 | 14년 전 | 1600 | ||
| 2993 |
마케팅메지션
|
14년 전 | 1013 | |
| 2992 |
마케팅메지션
|
14년 전 | 962 | |
| 2991 |
마케팅메지션
|
14년 전 | 1133 | |
| 2990 | 14년 전 | 974 | ||
| 2989 | 14년 전 | 797 | ||
| 2988 |
|
14년 전 | 946 | |
| 2987 | 14년 전 | 825 | ||
| 2986 | 14년 전 | 1039 | ||
| 2985 | 14년 전 | 587 | ||
| 2984 | 14년 전 | 969 | ||
| 2983 | 14년 전 | 968 | ||
| 2982 | 14년 전 | 911 | ||
| 2981 | 14년 전 | 836 | ||
| 2980 |
마케팅메지션
|
14년 전 | 1175 | |
| 2979 |
마케팅메지션
|
14년 전 | 908 | |
| 2978 |
|
14년 전 | 849 | |
| 2977 |
|
14년 전 | 877 | |
| 2976 | 14년 전 | 818 | ||
| 2975 | 14년 전 | 821 | ||
| 2974 | 14년 전 | 906 | ||
| 2973 | 14년 전 | 1298 | ||
| 2972 | 14년 전 | 683 | ||
| 2971 | 14년 전 | 736 | ||
| 2970 | 14년 전 | 904 | ||
| 2969 | 14년 전 | 917 | ||
| 2968 | 14년 전 | 781 | ||
| 2967 | 14년 전 | 1354 | ||
| 2966 | 14년 전 | 862 | ||
| 2965 |
|
14년 전 | 1090 | |
| 2964 | 14년 전 | 1482 | ||
| 2963 | 14년 전 | 960 | ||
| 2962 |
|
14년 전 | 986 | |
| 2961 |
|
14년 전 | 891 | |
| 2960 | 14년 전 | 840 | ||
| 2959 | 14년 전 | 1193 | ||
| 2958 | 14년 전 | 940 | ||
| 2957 |
|
14년 전 | 834 | |
| 2956 |
|
14년 전 | 1203 | |
| 2955 |
|
14년 전 | 2346 | |
| 2954 | 14년 전 | 941 | ||
| 2953 | 14년 전 | 1055 | ||
| 2952 |
senseme
|
14년 전 | 1188 | |
| 2951 |
뱌미3059
|
14년 전 | 903 | |
| 2950 |
|
14년 전 | 950 | |
| 2949 | 14년 전 | 1000 | ||
| 2948 | 14년 전 | 874 | ||
| 2947 |
|
14년 전 | 964 | |
| 2946 |
개발조각사
|
15년 전 | 2452 | |
| 2945 |
개발조각사
|
15년 전 | 1775 | |
| 2944 |
개발조각사
|
15년 전 | 6061 | |
| 2943 |
개발조각사
|
15년 전 | 1307 | |
| 2942 |
개발조각사
|
15년 전 | 1572 | |
| 2941 |
개발조각사
|
15년 전 | 1933 | |
| 2940 |
개발조각사
|
15년 전 | 3663 | |
| 2939 |
개발조각사
|
15년 전 | 2994 | |
| 2938 |
개발조각사
|
15년 전 | 2076 | |
| 2937 |
개발조각사
|
15년 전 | 1576 | |
| 2936 |
개발조각사
|
15년 전 | 4025 | |
| 2935 | 15년 전 | 1107 | ||
| 2934 | 15년 전 | 880 | ||
| 2933 | 15년 전 | 1057 | ||
| 2932 | 15년 전 | 983 | ||
| 2931 | 15년 전 | 980 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기