AGB  ·  Datenschutz  ·  Impressum  







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

Objekt durch String finden

Ein Thema von maximus Caesar · begonnen am 12. Mär 2006 · letzter Beitrag vom 12. Mär 2006
 
Benutzerbild von maximus Caesar
maximus Caesar

Registriert seit: 26. Sep 2004
Ort: Biberach
319 Beiträge
 
Turbo Delphi für Win32
 
#1

Objekt durch String finden

  Alt 12. Mär 2006, 14:57
Hallo!
Ich habe jetzt z.B. diesen Programmtext:
Delphi-Quellcode:
  Combobox9.Items:=ComboBox8.Items;
  Combobox10.Items:=ComboBox8.Items;
  Combobox11.Items:=ComboBox8.Items;
  Combobox12.Items:=ComboBox8.Items;
  Combobox13.Items:=ComboBox8.Items;
  Combobox14.Items:=ComboBox8.Items;
  Combobox15.Items:=ComboBox8.Items;
  Combobox16.Items:=ComboBox8.Items;
  Combobox17.Items:=ComboBox8.Items;
  Combobox18.Items:=ComboBox8.Items;
  Combobox19.Items:=ComboBox8.Items;
  Combobox20.Items:=ComboBox8.Items;
  Combobox21.Items:=ComboBox8.Items;

  ComboBox9.ItemIndex:=0;
  ComboBox10.ItemIndex:=0;
  ComboBox11.ItemIndex:=0;
  ComboBox12.ItemIndex:=0;
  ComboBox13.ItemIndex:=0;
  ComboBox14.ItemIndex:=0;
  ComboBox15.ItemIndex:=0;
  ComboBox16.ItemIndex:=0;
  ComboBox17.ItemIndex:=0;
  ComboBox18.ItemIndex:=0;
  ComboBox19.ItemIndex:=0;
  ComboBox20.ItemIndex:=0;
  ComboBox21.ItemIndex:=0;
Jetzt möchte ich das ganze zusammenfassen. Ich habe hier schon von einer Möglichkeit gelesen, finde es aber nicht mehr.

Es ging so, das man einen string bildet, ein objekt sucht, das so heißt wie der string und dann die eigenschaft des objekts verändert.
kann mir jemand schreiben wie das geht?
  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 21:31 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