Autor Beitrag
Kayo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 02.03.05 20:27 
Hallo,

ich möchte gerne den das Zeichen vor bzw. nach dem Cursor in der TEdit Komponente ermitteln.
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mi 02.03.05 20:29 
ausblenden Delphi-Quelltext
1:
Edit1.Text[Edit1.SelStart + 1]					


bzw.

ausblenden Delphi-Quelltext
1:
Edit1.Text[Edit1.SelStart - 1]					


wobei diese beiden Funktionen nicht prüfen, ob noch Zeichen vor/nach dem Cursor existieren; können daher zu einer AV führen

AXMD
Kayo Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 22



BeitragVerfasst: Mi 02.03.05 20:50 
Daaaanke.