Contents

Views 22673 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print

스샷 먼저.. ㅎㅎ

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
No. Category Subject Author Date Views
153 Develop [ios][swift] 초간단 To-do Memo file hooni 2016.06.27 1176
152 Develop [ios][swift] 초간단 카달로그 앱 (Catalog App) file hooni 2016.06.27 7277
151 Etc 영어. 반드시 외워야 할 단어 file hooni 2016.07.07 2064
150 Etc 영어. 반드시 외워야 할 영어 숙어 2 file hooni 2016.07.07 6423
149 Develop [ios] 새로 만들고 있는 DateMemo file hooni 2016.07.12 722
148 Develop [ios] Crashlytics, Fabfic 설치/설정 hooni 2016.07.21 832
147 Develop [c] 파일명 또는 특정 패턴을 적용 file hooni 2016.08.03 879
146 Develop [android] Android N requires the IDE to be running with Java 1.8 or later 오류 hooni 2016.08.30 937
145 PPT 삼성페이(Samsung Pay) 구조 file hooni 2016.09.09 1014
144 Develop [c] 셀프 넘버(Self Number) 구하기 1 hooni 2016.09.09 2377
143 Develop [c] Mac OS 에 gmp(gmp.h) 라이브러리 설치 hooni 2016.10.03 1435
142 Develop [c] RSA 암호화 구현(gmp 라이브러리 활용) file hooni 2016.10.03 1006
Board Pagination Prev 1 ... 81 82 83 84 85 86 87 88 89 90 ... 98 Next
/ 98