AGB  ·  Datenschutz  ·  Impressum  







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

ComboBox1.Itemindex

Ein Thema von horst · begonnen am 26. Okt 2003 · letzter Beitrag vom 26. Okt 2003
 
horst

Registriert seit: 1. Jul 2003
347 Beiträge
 
Delphi 2007 Professional
 
#1

ComboBox1.Itemindex

  Alt 26. Okt 2003, 22:00
hallo
habe auf form2 ein edit, in dieses edit gebe ich ein wort ein...
alles wird in einer datei gespeichert
mein problem ist eine combobox auf form1, die items werden mit
Delphi-Quellcode:
with ComboBox1 do
begin
  Items.LoadFromFile(extractfilepath(application.exename)+ 'themen\themen.txt');
aus einer textdatei gefüllt.
nun zu meiner frage:
ich möchte, das in form2.edit eingegebene wort in der combobox auf form1 zu sehen ist.
quasi als Form1.ComboBox1.Itemindex

Delphi-Quellcode:
procedure TForm2.Button1Click(Sender: TObject);
Var
  I : Integer;
  F : TextFile;
  temp:string;
Begin
   memo1.lines.loadfromfile(extractfilepath(application.exename)+ 'themen\themen.txt');
   memo1.lines.add(edit1.text);
   createDir(extractfilepath(application.exename)+ 'themen\'+''+edit1.Text+'');
   memo1.lines.savetofile(extractfilepath(application.exename)+ 'themen\themen.txt');
   memo1.clear;
   close;
   Form1.ComboBox1.Items.LoadFromFile(extractfilepath(application.exename)+ 'themen\themen.thm');
   Form1.ComboBox1.Itemindex:=edit1.Text; // <----das ist mein problem
End;
  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 18:20 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz