Autor Beitrag
ex4ct
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67


Delphi 7
BeitragVerfasst: Mi 12.07.06 20:42 
Hallo, wie kann ich bei einer Aktion z.B. Buttonklick prüfen ob die Letzten Buchstaben identisch mit den von mir bestimmten Buchtaben (zB edit1.Text) sind?

MfG
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Mi 12.07.06 20:53 
z.B. so:
ausblenden Delphi-Quelltext
1:
if Copy( Memo.Lines.Text, Length(  Memo.Lines.Text) - Length(Edit1.Text), Length( Edit1.Text)) = Edit1.Text then ...					

_________________
Markus Kinzler.
ex4ct Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67


Delphi 7
BeitragVerfasst: Mi 12.07.06 21:20 
Ich habe es so versucht aber es geht leider nicht!
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Mi 12.07.06 21:25 
ausblenden Delphi-Quelltext
1:
2:
3:
4:
 if Copy(Memo1.Text,
         Length(Memo1.Text)-Length(Edit1.Text)-1,
         Length(Edit1.Text)) = Edit1.Text then
    ...


aber so sollte es gehen ;)

//edit: etwas voreilig gepostet! Beim ersten Test hatts geklappt - ehrlich :lol:
//edit2: scheint doch zu klappen^^


Zuletzt bearbeitet von Marc. am Mi 12.07.06 21:29, insgesamt 1-mal bearbeitet
ex4ct Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 67


Delphi 7
BeitragVerfasst: Mi 12.07.06 21:27 
Doch..es gehen beide, danke ..war mein Fehler :D