Views 22621 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
357 PPT [ppt] 웜프레임워크 발표 양식(국보연) file hooni 2013.04.23 17016
356 Develop [c] 웅지학원 NAT를 소스코드로.. file hooni 2013.04.23 6611
355 Develop [c] 소켓 스트림 서버/클라이언트 (UDP) file hooni 2013.04.23 7600
354 Develop [c++] 마방진 소스코드 file hooni 2013.04.23 9558
353 Etc [doc] 웜 프레임워크 검증환경 구축(작성중..) file hooni 2013.04.23 16013
352 Etc 여기저기서 모은 VoIP(인터넷전화) 자료들~ file hooni 2013.04.23 15966
351 Develop [c] 민수형 소스(도메인소켓포함) file hooni 2013.04.23 6522
350 System/OS [linux] GD 라이브러리 설치 방법.. file hooni 2013.04.23 11369
349 System/OS [linux] 처음 설치부터 APM 설치까지 (업데이트 할 것) hooni 2013.04.23 38271
348 Develop [c] GD라이브러리(jpeg)를 사용한 웹 카운터 샘플 hooni 2013.04.23 15107
347 Develop JSON, BSON 변환 file hooni 2013.04.23 11814
346 Develop [js] 2차 잉여.. (Quadratic reciprocity) 계산.. file hooni 2013.04.23 7075
345 Develop [js] 네이버, 다음의 플레이어 스킨 file hooni 2013.04.23 6942
344 PPT [doc] 위탁과제 제안서와 발표자료(pdf) file hooni 2013.04.23 12534
343 Develop [js] 윈도우 시작버튼처럼 나오는 메뉴 file hooni 2013.04.23 6743
342 PPT [network] tcp/ip 설명 html파일 9장(ppt 포함) file hooni 2013.04.23 11650
Board Pagination Prev 1 ... 50 51 52 53 54 ... 74 Next
/ 74