Contents

조회 수 25597 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄

스샷 먼저.. ㅎㅎ

exp.jpg


Function DelTag(mystr As Variant) As String

'태그제거 함수
    
    If IsNull(mystr) = True Then
        'Null 처리부분
        DelTag = ""
        Exit Function
    End If
    
    Dim Pointed_Char As String
    Dim Switch_Value As Boolean
    Dim Result As String
    Dim Pnt_of_Str As Integer
    
    Switch_Value = True
    
    For Pnt_of_Str = 1 To Len(mystr)
        '전체 글자 갯수 만큼 루프를 수행
        Pointed_Char = Mid(mystr, Pnt_of_Str, 1)
        
        '한글자씩 처리한다
        If Pointed_Char = "<" Then
             
            If (Asc(Mid(mystr, Pnt_of_Str + 1, 1)) >= 65 And
                Asc(Mid(mystr, Pnt_of_Str + 1, 1)) <= 122) Or _
                Mid(mystr, Pnt_of_Str + 1, 1) = "/" Then
                
                '첫번째 글자가 영문 알파벳 이거나 "/"이면 스위치는 false
                 Switch_Value = False
            End If
            
            If (Asc(Mid(mystr, Pnt_of_Str + 2, 1)) >= 65 And
                Asc(Mid(mystr, Pnt_of_Str + 2, 1)) <= 122) Or _
                Mid(mystr, Pnt_of_Str + 2, 1) = "/" Then
                
                '두번째 글자가 영문 알파벳 이거나 "/"이면 스위치는 false
                Switch_Value = False
            End If
                        
        End If
        
        If Switch_Value = True Then
            '스위치 값이 true일때만 result에 문자를 더해나간다
            Result = Result & Pointed_Char
        End If
        
            
        If Pointed_Char = ">" Then
            '닫히는 꺽쇄 괄호를 만나면 무조건 스위치값은 true
            Switch_Value = True
        End If
    Next Pnt_of_Str

    DelTag = Result
    
End Function


[출처] http://blog.naver.com/devace?Redirect=Log&logNo=20063206854


?

List of Articles
번호 분류 제목 글쓴이 날짜 조회 수
133 Develop [android] 가속도 센서를 이용한 흔듦(Shake) 감지 file hooni 2014.11.04 3062
132 Develop [js] 모바일 스크롤 방지(해제) hooni 2015.04.14 3041
131 System/OS OpenSSL로 ROOT CA 생성 및 SSL 인증서 발급하기 hooni 2017.10.28 3039
130 Develop [Javascript][Ajax] 자바스크립트 강의 산출물 file hooni 2019.10.05 3025
129 Develop [swift] 실행시간 측정하기 hooni 2021.09.14 3018
128 Develop [android] 간단한 SQLIite 예제 hooni 2017.06.14 3007
127 System/OS [linux] CentOS 에 APM 설치하기 hooni 2015.01.02 2974
126 Etc 사이버보안실무 수업 메모 hooni 2017.03.30 2967
125 PPT [ppt] 전자금융보안론 발표/설치 자료 file hooni 2016.05.03 2954
124 Develop [ios] GPS 이용 상태 확인 hooni 2015.04.27 2925
123 PPT [ppt] OCB기술개발팀 OJT 자료 file hooni 2015.11.13 2920
122 Database [mysql] MySQL 백업 및 복구 hooni 2019.11.22 2883
Board Pagination Prev 1 ... 83 84 85 86 87 88 89 90 91 92 ... 99 Next
/ 99