Autor Beitrag
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 04.09.06 12:25 
Moin!

user profile icondriepsy hat folgendes geschrieben:
Hab 2 separate Listen

Was genau klappt jetzt nicht? Am besten mit Code und Beispiel. Ach ja, bitte benenne doch mal die Componenten passend zum jeweiligen Inhalt, damit man weiß, was da drin steht. :mahn: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
driepsy Threadstarter
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Mo 04.09.06 16:37 
So zum Verständnis hab ich das Programm mal hochgeladen also das Bild...
img322.imageshack.us...p?image=morsesb1.jpg

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
for I:=1 to lbLettres.Items.Count-1 do
  Zeile := lbLettres.Items.IndexOf(Lettre);
    if (Zeile > -1) then    
    begin                    
      lbMorse.Items.Append ?????
    end;


Dies hab ich bis jetzt.

Also wird Buchstabe für Buchstabe durchgenommen in der 2ten Listbox (lbLettres).
Wird der Buchstabe gefunden spuckt er die Zeile in Zeile aus.

Jetzt soll er die selbe Zeilen zb 17te Zeile aus den Codes nehmen (3te Listbox lbCodes)
und diese Code für Code in die grosse listbox setzen (lbMorse).
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 04.09.06 17:34 
Moin!

Meinst du sowas?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for I := 1 to lbLettres.Items.Count-1 do begin
  Zeile := lbLettres.Items.IndexOf(Lettre);  
  if (Zeile > -1) then      
    lbMorse.Items.Add(lbCodes.Items.Strings[Zeile];
end;

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
driepsy Threadstarter
Hält's aus hier
Beiträge: 12



BeitragVerfasst: Mo 04.09.06 21:22 
user profile iconNarses hat folgendes geschrieben:
Moin!

Meinst du sowas?
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
for I := 1 to lbLettres.Items.Count-1 do begin
  Zeile := lbLettres.Items.IndexOf(Lettre);  
  if (Zeile > -1) then      
    lbMorse.Items.Add(lbCodes.Items.Strings[Zeile];
end;

cu
Narses


ja genau das mein ich nur dass Code für Code hintereinandersetzen soll...
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Mo 04.09.06 21:35 
Moin!

user profile icondriepsy hat folgendes geschrieben:
nur dass Code für Code hintereinandersetzen soll...

:gruebel:
Was möchtest du uns damit sagen... :nixweiss: ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.