Contents

조회 수 22673 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
1053 PPT [ppt] iOS 플라랩#03(2015.04.27) 발표 자료 file hooni 2015.04.24 1158
1052 Etc 캘리포니아 운전면허 문제 file hooni 2017.07.22 1160
1051 System/OS [mac] OS X 엘 캐피탄에서 Soudflower 사용하기 2 file hooni 2016.10.03 1162
1050 Develop [ios] Did UIScrollView End Scrolling? hooni 2016.04.19 1164
1049 System/OS [mac] Homebrew/rvm/cocoapod setting hooni 2017.07.29 1164
1048 Develop [ios][swift] 초간단 To-do Memo file hooni 2016.06.27 1176
1047 System/OS [mac] VirtualBox 실행 스크립트와 bash_profile 설정 file hooni 2020.07.08 1177
1046 PPT [ppt] 정보보호관리 발표내용 #2 file hooni 2016.12.08 1179
1045 PPT [ppt] 정보보호관리 발표내용 file hooni 2016.11.30 1180
1044 Etc RSVP 란? file hooni 2017.11.22 1184
1043 Develop [ios] 동영상 플레이어 샘플 (for Local File) file hooni 2017.02.07 1190
1042 System/OS 맥에서 포트 확인하고 닫기 (mac) hooni 2022.03.22 1192
Board Pagination Prev 1 ... 6 7 8 9 10 11 12 13 14 15 ... 98 Next
/ 98