AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

TFindComponent

Ein Thema von creehawk · begonnen am 1. Feb 2024 · letzter Beitrag vom 2. Feb 2024
 
mytbo

Registriert seit: 8. Jan 2007
461 Beiträge
 
#8

AW: TFindComponent

  Alt 1. Feb 2024, 15:40
for I in TimeList do TListView(SellProductForm.FindComponent(I)).Items.Clear; Das funktioniert. Warum jetzt auch immer .....
Nicht sicher! FindComponent kann Nil oder etwas anderes als ein TListView liefern:
Delphi-Quellcode:
var
  clv: TComponent;
begin
  for s in TimeList do
  begin
    clv := SellProductForm.FindComponent(s);
    if clv is TListView then
      TListView(clv).Items.Clear;
  end;
PS: himitsu hat das in Post 4 schon geschrieben.

Bis bald...
Thomas

Geändert von mytbo ( 1. Feb 2024 um 15:53 Uhr) Grund: Bezug auf Post 4 hinzugefügt
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 02:55 Uhr.
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz