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
- array
- 이미지세로길이
- SPLIT
- 이미지가로길이
- javascript 한글입력체크
- FileSystemObject
- VARIABLE
- inner join
- MSSQL보안
- sql업데이트
- xmldom
- WML
- sql순위
- 자바기초
- 인젝션
- instr
- tempDB
- VarType
- join
- update
- 정규식
- XML
- 한글입력체크
- wap
- injection
- sql랭킹
- jdbc driver
- asp함수
- ERD
- JavaScript
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