What's the correct syntax for using
CodeUnit.InitializationStatements.Add(Value : TCodeStatement)
Through code completion I cannot deduce the right way of using TCodeStatement
.
One small example:
CodeUnit.InitializationStatements.Add(
TCodeSnippetStatement.Create(
Format('RegisterEntity(%s);', [TypeName])
));
1 Like
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.