Autor Beitrag
Cruiser23
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: Do 24.07.03 13:16 
Ich habe das Problem, das ich es nicht hinbekomme, den Inhalt des gewählten Eintrages in eine var zu übergeben und mir diese mittels Showmessage anzeigen zu lassen. Hier der source:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
procedure TMainFrm.EndungCmbBoxSelect(Sender: TObject);
  begin
    DefFile := EndungCmbBox.SelText;
    case EndungCmbBox.ItemIndex of
      0:  begin
            DefFile := EndungCmbBox.SelText;
            Showmessage(DefFile);
            //...
          end;
      1:  begin
            DefFile := EndungCmbBox.SelText;
            Showmessage(DefFile);
            //...
          end;
      2:  begin
            DefFile := EndungCmbBox.SelText;
            Showmessage(DefFile);
            //...
          end;
    end;
  end;

"DefFile" ist global deklariert.

Was mache ich falsch?

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!
derDoc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 623

Win Vista Prof
D2007 Prof
BeitragVerfasst: Do 24.07.03 13:35 
Du musst DefFile := EndungCmbBox.Text; benutzen. Dadurch wird der gerade erscheinende Text ausgewählt.

_________________
MfG derDoc
There are only 10 types of people: those who understand binary and those who don't.
Cruiser23 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 191

WinXP
D7 Prof.
BeitragVerfasst: Do 24.07.03 13:40 
Super, Danke! Funzt nu !!!

_________________
Du steckst immer in der Sch****, das einzige, was sich ändert, ist die Tiefe!