Views 22623 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

?

List of Articles
No. Category Subject Author Date Views
713 Develop [node.js] 지금 하고 있는거.. file hooni 2013.04.23 26978
712 Develop [node.js] nodejs 기본 설치 hooni 2013.04.23 26254
711 Develop [mysql] 양력, 음력 DB데이터 file hooni 2013.04.23 7802
710 Develop [maven] Mac OS에 메이븐(maven) 설치하기 file hooni 2015.01.21 1110
709 Develop [matlab] 정보은닉 스테가노그래피(Steganography) 수업 file hooni 2016.10.03 682
708 Develop [matlab] ZigZag-Scanning (2-D Array) file hooni 2016.10.15 1987
707 Develop [linux] 프로세스 관련 시스템콜 hooni 2003.04.23 7827
706 Develop [linux] 임베디드 리눅스 (embedded linux) file hooni 2013.04.23 7354
705 Develop [linux] 쉘 스크립트를 이용한 BBS hooni 2003.04.23 10047
704 Develop [linux] 날짜나 파일의 내용으로 검색하는 방법(find 명령 사용) hooni 2013.04.23 8118
703 Develop [linux] tar 명령어 뽀개기.. ㅋㅋ hooni 2003.04.23 7669
702 Develop [linux] crond 사용법.. ㅋㅋ hooni 2013.04.23 7246
701 Develop [linux] CentOS Apache 웹서버에 HTTPS 적용 hooni 2015.10.23 788
700 Develop [lego] 세그웨이 이것만 볼것.. ㅎㅎ file hooni 2013.04.23 33536
699 Develop [kotlin] 코틀린 안드로이드 앱 버전/빌드 정보 hooni 2020.12.15 821
698 Develop [js]모바일 웹에서 orientationchange hooni 2013.04.23 19359
Board Pagination Prev 1 ... 7 8 9 10 11 ... 53 Next
/ 53