Autor Beitrag
huuuuuh
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Sa 23.02.08 00:55 
ich suche eine funktion mit der ich in einem memo-feld einen string suchen kann und die zeilennummer zurückbekomme. kann mir da einer helfen?
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Sa 23.02.08 01:28 
Lines, Pos

_________________
Blackheart666
Der Irrsinn ist bei Einzelnen etwas Seltenes, - aber bei Gruppen, Parteien, Völkern, Zeiten die Regel. (Friedrich Nietzsche)
huuuuuh Threadstarter
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 665
Erhaltene Danke: 19

win xp, (win vista), win 7
VS 2008 Express Edition, VS 2010 Express Edition, VS 2010 Professionell
BeitragVerfasst: Sa 23.02.08 06:55 
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
function searchforstring (search : string ): integer;
Var
  Idx: Integer;
Begin
  For Idx := 0 To memo1.lines .Count Do
    If Pos (Search, memo1.lines [Idx]) > 0 Then result:=idx;

End;



ok danke dir :D