Limit on the number of code chars per line

alien251
alien251 Member Posts: 80
I'm trying to use the STRSUBSTNO function to replace around 10 fields in an html formatted string. How can I get around the 132 chars per line limitation in the C/AL editor?

Thanks!

Dan

Answers

  • DenSter
    DenSter Member Posts: 8,307
    MyString := 'Some text with parameter %1' +
      'some more text with parameter %2'; // you can extend this to more lines if you want, and more parameters
    NewString := STRSUBSTNO(MyString,'one',
      'two'); //also across multiple lines if you want
    
  • Belias
    Belias Member Posts: 2,998
    DenSter wrote:
    MyString := 'Some text with parameter %1' +
    'some more text with parameter %2'; // you can extend this to more lines if you want, and more parameters
    NewString := STRSUBSTNO(MyString,'one',
    'two'); //also across multiple lines if you want
    

    AKA: "Do a carriage return" 8)
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • alien251
    alien251 Member Posts: 80
    Thank you! :D