Contents

Views 22681 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
61 Develop [ios] 아이폰용 앱 오픈 소스들 hooni 2013.04.23 470194
60 Develop [ios] 언어, 지역, 국가 설정 가져오기 hooni 2014.05.12 272249
59 Develop [android] 만화 어플 소스코드 file hooni 2013.04.23 92924
58 Develop [c#] Hashtable <-> Json (dll 포함) file hooni 2013.04.23 80731
57 Develop [C#] MD5, SHA1 해시 & 인코딩 hooni 2013.04.23 77968
56 Develop [android] 점심 해결 앱 소스 코드 ㅋㅋ file hooni 2013.04.23 76504
55 Develop [json] 종결자 (설명과 웹, C/C++/C# 프로그램 샘플 코드) file hooni 2013.04.23 72044
54 Develop [ios] Random Thoughts: Rand() vs. arc4random() hooni 2013.10.31 68125
53 Develop [vb] 비주얼 베이직 자격증용 ㅎㅎ hooni 2003.04.23 61594
52 Develop [android] Canvas를 이용해 이미지 확대/축소 하기 hooni 2013.04.23 60799
51 Develop [vb] 비주얼 베이직 141페이지 hooni 2003.04.23 59026
50 Develop [vb] 비주얼 베이직 순위 정렬 루틴 hooni 2003.04.23 58449
Board Pagination Prev 1 2 3 4 5 6 Next
/ 6