Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- tempDB
- instr
- inner join
- join
- FileSystemObject
- wap
- javascript 한글입력체크
- VARIABLE
- ERD
- XML
- injection
- sql랭킹
- array
- MSSQL보안
- xmldom
- 자바기초
- jdbc driver
- WML
- SPLIT
- sql순위
- 이미지가로길이
- JavaScript
- sql업데이트
- 정규식
- update
- 한글입력체크
- VarType
- asp함수
- 이미지세로길이
- 인젝션
Archives
- Today
- Total
3초기억력
핸드폰번호 자리수 함수(ASP) 본문
'//폰번호 11자리 중 4번째수가 0일경우 변환, 그외 에러처리
function phone_len_check(phone_num)
If Len(phone_num) = 11 Then
If Mid(phone_num, 4, 1) = "0" Then
phone = Left(phone_num,3) & Right(phone_num, 7)
Else
phone = phone_num
End If
ElseIf Len(phone_num) > 11 Then
phone = "N"
Else
phone = phone_num
End if
phone_len_check = phone
end Function
'//폰번호가 10자리인경우 11자리(4번째 0추가)로 강제 변환
function phones_len_check(phone_num)
If Len(phone_num) < 11 Then
phones = Left(phone_num,3) & "0" & Right(phone_num, 7)
ElseIf Len(phone_num) > 11 Then
phones = "N"
Else
phones = phone_num
End if
phones_len_check = phones
end Function
'플밍_ASP' 카테고리의 다른 글
ASP - Msxml2.DOMDocument 활용법 (0) | 2008.11.17 |
---|---|
ASP - URLDecode 함수. 퍼옴 (0) | 2008.11.17 |
FileSystemObject 이용, 로그남기기(ASP) (0) | 2008.11.12 |
랜덤함수(Random, ASP) (0) | 2008.11.12 |
XMLDOM 사용법 (1) | 2008.11.12 |
Comments