Matheas Manssen mentioned this to All:
MM> Memo.seltext:='*'+Memo.seltext+'*';
MM> This works fine for small strings, but when using string > 256 chars(I
MM> think), the first 256 chars of the selected text stay on the screen, but
MM> the rest disappears... :-(( What am I doing wrong?
The problem is that SelText returns a string... which can only be up to 255
characters. Instead, you will have to use GetTextLen and GetTextBuf to
retreive the text to a buffer you allocate yourself, and SetText to assign
the modified text to the control.
...Gary
--- GoldED 2.41
---------------
* Origin: Nobody expects the Flying Circus BBS! (1:2410/905)
|