Delphi Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
델파이 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
FreePascal/Lazarus
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
델마당
볼랜드포럼 광고 모집

델파이 Q&A
Delphi Programming Q&A
[14643] 컴포넌트를 못찾아요 이유를 모를겠습니다. 좀....
따랑 [noogoona] 1893 읽음    2013-04-05 15:28
안녕하셔요
컴포넌트를 Button,Edit,Label등을 반목하여 생성하여 ㅅ해제후 또 생성하는 작업입니다
생성과 해제가 반복되는 작업입니다.
그런데 같은 컴포넌트를 찾아서 해제하는 작업에 문제가 있습니다.
부탁드립니다.
소스는 아래와 같습니다.

       For i:=0 to Self.ComponentCount-1  Do Begin
            If      (Pos('aSend_'  ,TButton(Self.Components[i]).Name)<>0) Or
                    (Pos('aDelete' ,TButton(Self.Components[i]).Name)<>0) Then TButton(Self.Components[i]).Free
            Else If (Pos('aEdit_'  ,TEdit  (Self.Components[i]).Name)<>0) Then TEdit  (Self.Components[i]).Free
            Else If (Pos('aMemo_'  ,TMemo  (Self.Components[i]).Name)<>0) Then TMemo  (Self.Components[i]).Free
            Else If (Pos('aLabel_' ,TLabel (Self.Components[i]).Name)<>0) Then TLabel (Self.Components[i]).Free
            Else If (Pos('aShape_' ,TShape (Self.Components[i]).Name)<>0) Then TShape (Self.Components[i]).Free
            Else If (Pos('aImage_' ,Timage (Self.Components[i]).Name)<>0) Then Timage (Self.Components[i]).Free;
        End;
    

+ -

관련 글 리스트
14643 컴포넌트를 못찾아요 이유를 모를겠습니다. 좀.... 따랑 1893 2013/04/05
14644     Re:컴포넌트를 못찾아요 이유를 모를겠습니다. 좀.... gomsun2 1912 2013/04/05
14645         Re:Re:컴포넌트를 못찾아요 이유를 모를겠습니다. 좀.... 따랑 1714 2013/04/09
14652             Re:Re:Re:컴포넌트를 못찾아요 이유를 모를겠습니다. 좀.... 별을보라 1888 2013/04/11
14654                 Re:Re:Re:Re:또다른 생성된 컴포넌트 질문입니다. 부탁드립니다. 따랑 1828 2013/04/12
14655                     Re:Re:Re:Re:Re:또다른 생성된 컴포넌트 질문입니다. 부탁드립니다. gomsun2 2567 2013/04/13
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.