Options

continue to the second line

Horse06Horse06 Member Posts: 496
Hi expert, I have a line of code which is very long, and how to continue it to the second line? Using &? Appreciate it!

Comments

  • Options
    ngebhardngebhard Member Posts: 127
    You are in C/SIDE, right? Just continue in the next line. You need to have break before a fieldname or an operation or something like this. If it doesn't work, the compiler will tell you.

    If you need further help, just post the code line and I will have a try.

    Regards,
    Nicole
    ProTAKT Projekte & Business Software AG
    Microsoft Dynamics NAV Partner
    Bad Nauheim, Germany
    http://www.protakt.de
    http://twitter.com/protakt
  • Options
    Horse06Horse06 Member Posts: 496
    I break the line, but it has an error. Below is the code. Thank you!

    EnterCell(Row, 22, FORMAT(CURRENTDATETIME, 0, '<Year4><Month,2><Day,2><Hours24,2><Minutes,2><Seconds,2>
    .<seconds,3Z'),FALSE, FALSE, FALSE);
  • Options
    ngebhardngebhard Member Posts: 127
    Your break was in the wrong place. You can break after a "," as well.

    Try one of the following, this should work:

    1.)
    EnterCell(Row, 22, FORMAT(CURRENTDATETIME, 0,
    '<Year4><Month,2><Day,2><Hours24,2><Minutes,2><Seconds,2>.<seconds,3Z'),FALSE, FALSE, FALSE);

    2)
    EnterCell(Row, 22, FORMAT(CURRENTDATETIME, 0,'<Year4><Month,2><Day,2><Hours24,2><Minutes,2><Seconds,2>.<seconds,3Z'),
    FALSE, FALSE, FALSE);

    Regards
    Nicole
    ProTAKT Projekte & Business Software AG
    Microsoft Dynamics NAV Partner
    Bad Nauheim, Germany
    http://www.protakt.de
    http://twitter.com/protakt
  • Options
    Horse06Horse06 Member Posts: 496
    Works! Thank you!
Sign In or Register to comment.