Options

Showoutput

albertodfaalbertodfa Member Posts: 15
:(
CurrReport.SHOWOUTPUT :=
NOT ("Testate Acquisti"."Pagare a - Nr. For." IN );

Do I have this education in a section, do you know that meaning has the parameter In?

Thanks

Comments

  • Options
    DenSterDenSter Member Posts: 8,304
    The IN statement needs to have valid values for your field. So...

    For an option type field:
    IF Rec.Field IN [Rec.Field::"First Value",Rec.Field::"Second Value"] THEN
      DoSomething;
    

    For a text field:
    IF Rec.Field IN ['ValueOne','ValueTwo'] THEN
      DoSomething;
    

    Etcetera, etcetera.
  • Options
    bostjanlbostjanl Member Posts: 107
    albertodfa wrote:
    :(
    CurrReport.SHOWOUTPUT :=
    NOT ("Testate Acquisti"."Pagare a - Nr. For." IN );

    Do I have this education in a section, do you know that meaning has the parameter In?

    Thanks

    Snapshot from "Navision Attain C/AL.pdf " link

    regards

    Bostjan
  • Options
    krikikriki Member, Moderator Posts: 9,090
    Then IN statement can be translated in different OR statement.

    eg.

    IF A IN [B,C..D,E] THEN

    can be translated as

    IF (A = B) OR
    ((A >= C) AND (A <= D)) OR
    (A = E) THEN

    As you can see, the IN-statement is easier to read
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.