Views 22624 Votes 0 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

?

  1. [ios] 자주 쓰는 패턴과 API

  2. [c] ICMP 패킷을 이용한 장난감

  3. [python] 애니팡, 캔디팡 매크로

  4. [c++] 문자열 뒤집기(문자열 거꾸로 출력)

  5. [c] 팩토리얼 서버/클라이언트..

  6. [java] 입출력 스트림 3부 (오브젝트)

  7. [winmobile] 윈도우 모바일 간단한 테스트 코드 ㅋㅋ

  8. [android] 자동차 리모컨 소스코드

  9. [ios] None IB vs. StoryBoard 샘플 소스

  10. [ios] PHP로 APNS 프로바이더~

  11. [ios] 푸시알림(APNS)에 대한 php 라이브러리 ㅋㅋ

  12. 프로그래밍 소스 관련 사이트..

  13. [js] 파이어폭스(Firefox;F/F)에서 outerHTML 작동하도록 만든 메소드

  14. 프로그램 문서 관리 (Doxygen)

  15. [android] 안드로이드 어플 모음 ㅎㅎ

  16. [c++] p.58 연습문제 2번

Board Pagination Prev 1 ... 7 8 9 10 11 ... 53 Next
/ 53