Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Sonstige Fragen zu Delphi (https://www.delphipraxis.net/19-sonstige-fragen-zu-delphi/)
-   -   Delphi SelLength in Synedit (https://www.delphipraxis.net/69767-sellength-synedit.html)

gauggi 19. Mai 2006 18:00


SelLength in Synedit
 
Hallo!

Wie heißt SelLength in Synedit?
Ich habe es mit diesem Code versucht und Delphi 3 sagt, dass SelLength ein undefinierter Bezeichner sei:
Delphi-Quellcode:
with synEdit1 do
  begin
    if SelLength <> 0 then
      StartPos := SelStart + SelLength
    else
      StartPos := 0;
Ich danke für jede Hilfe! :-D

[edit=SirThornberry]Delphi-Tags gesetzt. Nächstes mal bitte selbst machen. Mfg, SirThornberry[/edit]

marabu 19. Mai 2006 18:08

Re: SelLength in Synedit
 
Schau mal:

Delphi-Quellcode:
var
  SelLength: Integer;
begin
  with SynEdit do
    SelLength := SelEnd - SelStart;
end;
Grüße vom marabu


Alle Zeitangaben in WEZ +1. Es ist jetzt 18:04 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz