[Patch] [PascalScript macros] [New feature] export the property lines.count for use in PascalScript macros.
Original Reporter info from Mantis: DomingoGP @DomingoGP
-
Reporter name: Domingo Galmés
Original Reporter info from Mantis: DomingoGP @DomingoGP
- Reporter name: Domingo Galmés
Description:
The PascalScript macros makes the property Lines of the SynEdit available but the count of lines isn't available for the macros, i thing its interesting make the count lines available so the macro's writer can test for the value and avoid accessing Lines[x] out of bounds.
property Lines[Index: Integer]: string; // read only
The patch suplied makes availaible the
property LinesCount:integer; //read only
Steps to reproduce:
sample macro
begin
ShowMessage('Lines.count='+IntToStr(Caller.LinesCount));
if Caller.LinesCount>1 then
ShowMessage('Second line= '+Caller.Lines[1]);
end.
Mantis conversion info:
- Mantis ID: 37778
- Version: 2.1 (SVN)
- Fixed in version: 2.2
- Fixed in revision: 63893 (#7b179bcf)
- Target version: 2.2