Autor Beitrag
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Sa 09.04.05 19:46 
OK mach ich, danke =), aber um ehrlich zu sein siehts bei mir gerade gar nicht so schlecht aus probier meins erst mal weiter zu machen und meld mich dann bei dir ok :) ?
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Sa 09.04.05 20:21 
ok ich hab ne Frage was sagt mir diese zeile ?

 if ListBox2.Items[ComboBox1.ItemIndex] = Edit1.Text then

also ich mein ich weiß schon was se mir sagt, aber wies funktioniert die nur mit dem [ComboBox1.ItemIndex], was sagt mir das in der KLammer ?
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 09.04.05 20:53 
Also. Die fünfte Zeile in der user.txt ist ja der Name des Users und ebenso ist die fünfte Zeile in pwds.txt das Passwort zu eben diesem User. ComboBox1.ItemIndex zeigt mir also an, welchen User der Benutzer ausgewählt hat. Jetzt schau ich also in der ListBox2 (der ListBox, wo wir die pwds.txt geladen haben) in der selben Zeile nach, wie in der Zeile wo in der user.txt der Username steht, ob es das selbe ist, was der Benutzer in das Edit-Feld als Passwort geschrieben hat. Wenn das das selbe ist, dann stimmt das Passwort und es werden weitere Befehle ausgeführt... ;)
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: Sa 09.04.05 21:16 
Axo, danke =), hab ich verstanden, bei dem rest weiß ich was er bedeutet wenn mir noch was nicht verständlich is, dann frag ich dich noch mal =)

Danke
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: Sa 09.04.05 21:20 
Gut. kP... ;)
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: So 10.04.05 15:04 
Öhm, wie mach ich es, dass immer der letzte Eintrag in einer ListBox makiert ist ? Also mir geht es hier vorallem darum, wie bekomm ich raus, welchen ItemIndex der letzte Eintrag hat.
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: So 10.04.05 15:16 
Hallo,

mit Count-1
minus 1 weil der ItemIndex mit 0 beginnt.

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: So 10.04.05 15:45 
Mh mit count klappt das bei mir irgendwie nicht, habs schon ausprobiert.
Mein Ziel ist es, den wert von dem angeklicktem mit dem letzten wert zu tauschen, aber das klappt nicht.

dass müsste doch irgendwie so aussehen oder ?

ausblenden Delphi-Quelltext
1:
B_Psw.Items.Exchange(CB_psw_change.ItemIndex,LB_Psw.Items.count)					


Mh wenn ihr ne bessere idee habt, wie ich eine Zahl in einer ListBox ändernlasse, dann sagt mir das bitte, wäre mir nur recht :-)


Öhm noch ne Frage, wie kann ich es machen, dass wenn ich auf nen Button drücke dass dann eine exe ausgeführt wird ?

Moderiert von user profile iconraziel: Delphi-Tags hinzugefügt.
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 10.04.05 16:14 
Moin!

ausblenden Delphi-Quelltext
1:
ListBox1.Items.Exchange(ListBox1.ItemIndex, ListBox1.Items.Count-1);					

;)

Und wegen der Exe: Suche in: Delphi-Forum, Delphi-Library SHELLEXECUTE
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: So 10.04.05 16:15 
user profile iconDauersuchti hat folgendes geschrieben:
dass müsste doch irgendwie so aussehen oder ?

ausblenden Delphi-Quelltext
1:
B_Psw.Items.Exchange(CB_psw_change.ItemIndex,LB_Psw.Items.count)					

Nein, wie Lannes schon richtig erklärt hat, müsste es so aussehen:
ausblenden Delphi-Quelltext
1:
B_Psw.Items.Exchange(CB_psw_change.ItemIndex,LB_Psw.Items.count-1)					

Erklärung siehe Lannes letzter Beitrag.

user profile iconDauersuchti hat folgendes geschrieben:
Öhm noch ne Frage, wie kann ich es machen, dass wenn ich auf nen Button drücke dass dann eine exe ausgeführt wird ?

Neue Frage :arrow: Neuer Thread. Aber such vorher bitte (Kleiner Fingerzeig: Suche in: Delphi-Library SHELLEXECUTE)

Gruß,
raziel

_________________
JSXGraph
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: So 10.04.05 16:43 
Ok, habs eh hin bekommen danke euch deshalb

Vielen Dank für eure Hilfe !!!
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 10.04.05 18:20 
Wirklich alles?? :shock:


:rofl: Nein, nein... Ich glaub's dir ja... ;)
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: So 10.04.05 19:14 
Ok, alles nicht aber das meiste, ne exe zu starten klappt net mein Delphi 5 kennt die Befehle die dazu nötig sind irgendwie nicht =(. Ist aber ja auch egal ich danke euch trotzdem
WeBsPaCe
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 2322
Erhaltene Danke: 1

FireFox 3, Internet Explorer 6 SP1
D1, D3Prof, D6Pers, D7Pers+Indy, VisualStudio Express
BeitragVerfasst: So 10.04.05 19:20 
Oben bei uses ShellAPI dazuschreiben nicht vergessen... ;)
Dauersuchti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 33



BeitragVerfasst: So 10.04.05 20:00 
axo dass muss ich dazu schreiben ?
Stimmt jetzt gehts, also noch mal vielen danke an alle