Autor Beitrag
Constan
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 80

Win XP, Suse 10.1
Delphi 7
BeitragVerfasst: Do 14.04.05 14:32 
Hi ich habe ein Problem ich habe eine Boddy Liste (Listbox) in der Stehen "Nick IPAdresse" ich möchte das wenn ich einen Beliebigen eintrag markiere (also einmal anklicke) das er dann in Label1 NUR die IP Adresse übernimmt.

Beispiel

Muster1 127.1.1.1
Muster2 127.0.0.1
Muster3 127.0.0.2

Click auf Muster2 nehme dann IP in Label1

127.0.0.1


Wäre net wenn ihr mir ein Code geben könnt Danke.


Moderiert von user profile iconChristian S.: Topic aus Dateizugriff verschoben am Do 14.04.2005 um 15:34
StefanH
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1144

Win XP
D5 Standard, D7 Pers, D2005 Pers
BeitragVerfasst: Do 14.04.05 14:33 
wie wärs mit Copy und Pos ? :roll:

_________________
"Als es noch keine Computer gab, war das Programmieren noch relativ einfach."(Edsger W. Dijkstra)
"Ich bin nicht von Sinnen, sondern ich rede wahre und vernünftige Worte." (Paulus)
Constan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 80

Win XP, Suse 10.1
Delphi 7
BeitragVerfasst: Do 14.04.05 14:35 
Sry ich habe noch net so viel erfahrung. bin gerade eben garnet mitgekommen. :oops:
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Do 14.04.05 14:39 
Titel: hmm,
er meint du sollst dir in der Delphihilfe mal die Befehle POS und COPY anschauen. Das wird dir helfen.

Denn die Lösung ist in den onClick-Event der Listbox folgenden Code zu legen
ausblenden Delphi-Quelltext
1:
label.caption := COPY(listbox.items.Strings[listbox.itemindex],POS(' ',listbox.items.Strings[listbox.itemindex])+1,length(listbox.items.Strings[listbox.itemindex]));					

_________________
mfg. Joel
Constan Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 80

Win XP, Suse 10.1
Delphi 7
BeitragVerfasst: Do 14.04.05 14:45 
Vielen Dank, klapt.


Mit der Delphi Hilfe habe ich nur das Problem das ich mit den ganzen Fachbegriffen und so noch nit klar komme. ich nehme mir immer beispielcodes und baue die dann in mehreren varianten um damit ich es lerne.

Danke Nochmals.
wolle-
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 128

XP Prof, Suse 9.2
D7
BeitragVerfasst: So 17.04.05 08:16 
Constan Wie machst du das deine IP dahinter steht?

Bastel grade ca. das selbe :-)

mfg wolle

_________________
Don`t eat yellow snow ;)!!