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
 
creehawk

Registriert seit: 1. Jul 2013
Ort: Hamburg
233 Beiträge
 
Delphi 10.4 Sydney
 
#1

TFindComponent

  Alt 1. Feb 2024, 10:30
Moin Moin.

Ich hänge. Folgender Code bricht bei FindComponent mit accessViolation ab.
Delphi-Quellcode:
  TimeList := TStringlist.Create;
  TimeList.add('EarlyGame');
  TimeList.add('EarlyMidGame');
  TimeList.add('MidGame');
  
  For I := 0 to TimeList.Count-1 do
   begin
    TListView(SellProductForm.FindComponent(TimeList.Strings[I]+'View')).Items.Clear;
   end;
Der folgende Code läuft anstandlos

Delphi-Quellcode:
  TListView(SellProductForm.FindComponent('EarlyGameView')).Items.Clear;   
  TListView(SellProductForm.FindComponent('EarlyMidGameView')).Items.Clear;   
  TListView(SellProductForm.FindComponent('MidGameView')).Items.Clear;
Was das denn ?

creehawk
  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 04:05 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