Contents

조회 수 22635 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
61 Develop [ios] 비디오,네트워크,소셜로그인 테스트 file hooni 2017.04.04 708
60 Develop [ios] NSString, RegularExpression Find/Replace hooni 2017.04.14 858
59 Develop [ios] Facebook SDK 로그인 설명 file hooni 2017.04.19 1184
58 Develop [ios] 코코아 프로그래밍의 네이밍 룰(명명 규칙) hooni 2017.05.11 1200
57 Develop 리팩토링 계획안 file hooni 2017.05.15 769
56 Develop 사이버보안실무 발표자료 (2017.06.08) file hooni 2017.06.05 1231
55 Develop 캘리포니아 운전면허 족보 file hooni 2017.06.12 762
54 Develop [android] 간단한 SQLIite 예제 hooni 2017.06.14 1351
53 Develop [android] SQLiteOpenHelper를 이용한 DBManager hooni 2017.06.14 2084
52 Develop [coding] Find all anagrams in a string hooni 2017.06.27 1167
51 Develop [coding] 공부해야 하는거 ㅋㅋ secret hooni 2017.06.27 0
50 Develop [android] 안드로이드 앱 문서 샘플 file hooni 2017.07.11 2130
Board Pagination Prev 1 ... 61 62 63 64 65 66 67 68 69 70 71 Next
/ 71