We have procedures that initialize our database triggers/functions, so they have the SQL commands inserted on varchar variables as strings in plain code, like the following example:
My questions is:
- Is there any way in Genexus to write multiline strings? like c# literal strings using
@
, or with the recent java 13 text blocks using triple double quotes""" multilineText """
CodePudding user response:
GeneXus currently has no support for multiline. You are doing it the correct way, based on the code you shared.
CodePudding user response:
Acho que vc entende português. Rsrsrrs
Vc pode incluir uma string na sentença SQL (ex: "|", sem aspas) e fazer um replace antes de executar o comando SQL
&NewLine = NewLine()
&SQL = &SQL.Replace('|',&newLine())
Ou utilizar uma Expressão regular.