Hi
Editing an AL source code, is there any special character that can tell the editor that the line continues to the next line?
Like "_" (underscore) in Visual Basic?
Please advise.
Thank you!
Hi
Editing an AL source code, is there any special character that can tell the editor that the line continues to the next line?
Like "_" (underscore) in Visual Basic?
Please advise.
Thank you!
Thank you, Zhu, for the clarification.
I will then live with scrolling right and left :)
I'm sorry I didn't fully understand before.
As far as I know, AL cannot use '_' to change lines like VB.
If you do so, an error will be prompted. I believe you have tried.
This may not look friendly, but it is also written on one line in the BC standard code.
I'm sorry I can't solve your problem, but hope this will help.
Thanks.
ZHU
Thank you again, Zhu.
I may not have explained well enough what I was trying to do. It is not for BC users but it is only for myself when coding with VS Code.
Typical example is when I need to define a variable type Label and the value of the label is very very long.
*****
Hi, try this (\).
Thank you, Zhu.
I learned that if it is like
VariableA
:= 'value to be inserted';
pressing Enter in the middle of the line works. But if it is like
VariableB
:= 'This value is too long to fit into
the screen of my PC';
pressing Enter in the middle of the line does not work and get an error.
I was trying to find a solution for the 2nd case.
How do you normally handle such cases?
Thank you, Stefano, for your advice.
Hi, you just need to press enter.
You can find many examples in the standard code.
For example:
Hope this will help.
Thanks.
ZHU
In code you can press enter and write on the next line. On a label declaration you cannot do that.
Thank you, Stefano.
I actually would like to press Enter where I would like to. (CR and LF are inserted)
This is to define a very long Label or to change a text variable with a very long value which do not fit into a screen on my PC monitor.
Just write the text on the new line. There's no a special chars to set.
YUN ZHU
311
Super User 2025 Season 1
Mansi Soni
242
Sagar_Dangar_MCP
186