Skip to content

Custom Function, error when unorderd types in parameters #224

@mvanrijnen

Description

@mvanrijnen

example:

TMyRendererLib=class
public
class function WordWrap(const AText : string; const AMaxCharsPerLine : integer; const AEOL : string) : string; static;
class function MyWrp(const AText, AEOL : string; const AMaxCharsPerLine : integer) : string; static;
end;

In the template:
<%MyWrp("This is a very long line which has te be wordwrapped in orde to be visible in the availabe space", '
\n', 20)%>\n

<%WordWrap("This is a very long line which has te be wordwrapped in orde to be visible in the availabe space", 20, '
\n')%>\n

The MyWrp function works, with the WordWrap function the parsers exceptions with: "(Line 1, Column xxx) Parsing error. Expecting: )"

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions