-
Hi. It's clear that the custom function mechanism works perfectly, but I think there is something in the concept of a context that I must be missing. Any clarifying hints would be greatly appreciated. program Console; {$APPTYPE CONSOLE} uses type TFunctions = class class function TFunctions.FullName(const FirstName, LastName: string): string; begin var const begin
except end. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The parser does attempt some validation on the function calls, so it also requires the context. Change:
to
|
Beta Was this translation helpful? Give feedback.
-
Also, I'd recommend trying to use the template registry. It removes most of the boiler plate around loading from templates. It has a single context that you can access Template.Resolver.Context. |
Beta Was this translation helpful? Give feedback.
The parser does attempt some validation on the function calls, so it also requires the context.
Change:
to