Options

Marker field in SalesLine

knaabisknaabis Member Posts: 37
edited 2012-11-12 in Navision Attain
How to mark Marker field from SalesLine in C/AL code.
Fow example:


IF "Sales Invoice Line".Marker = yes THEN...

Which is correct:
1) yes
2) on
3) ...

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    If "Marker" is a field of datatype Boolean, you can write:
    IF "Sales Invoice Line".Marker THEN...
    
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    knaabisknaabis Member Posts: 37
    Thanks!
  • Options
    DenSterDenSter Member Posts: 8,304
    The literal values in C/AL code for boolean type are TRUE and FALSE.
    IF "Sales Invoice Line".Marker = TRUE THEN...
    //or
    IF "Sales Invoice Line".Marker = FALSE THEN...
    
Sign In or Register to comment.