![]() |
Selected text |
Post Reply ![]() |
Author | |
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() Posted: 23 January 2008 at 7:07am |
Struggling abit trying to understand the NormalStart/NormalEnd.
I need to be able to strip out a block of text and replace it with another block of text using code. Anyone out there able to give me an example of how to do this. |
|
![]() |
|
AndreiM ![]() Moderator Group ![]() ![]() Joined: 18 August 2007 Status: Offline Points: 132 |
![]() ![]() ![]() ![]() ![]() |
The selection start may be grater then end - reverse selection.
NormalStart returns less value from Start and End.
NormalEnd returns bigger value from Start and End.
Selection.Text property is read/write.
EXAMPLE: wndSyntaxEdit.Selection.Start.SetPosStr 1, 3
wndSyntaxEdit.Selection.End.SetPosStr 2, 5 wndSyntaxEdit.Selection.Text = "1234567" See the SyntaxEditTextSelection description in our help.
|
|
![]() |
|
XpatTech ![]() Groupie ![]() ![]() Joined: 26 November 2007 Location: United Kingdom Status: Offline Points: 37 |
![]() ![]() ![]() ![]() ![]() |
Thanks AndreiM , exactly what I needed...
![]() |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |