【问题标题】:How to test the value of an option field in AL (Dynamics) Business Central如何测试 AL (Dynamics) Business Central 中选项字段的值
【发布时间】:2023-02-19 21:16:40
【问题描述】:

我是 AL(商务中心)的新手。我希望能够测试选项字段的值。

if myOptionField::Booking then 
begin
  Message('Booking');
end;

但它没有用。

【问题讨论】:

    标签: dynamics-al


    【解决方案1】:

    我建议你试试这个方法。

    if rec.myOptionField = myOptionField:: Booking then
    begin
      Message('Booking');
    end;
    

    【讨论】:

      猜你喜欢
      • 2022-01-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-15
      • 1970-01-01
      • 2022-11-04
      • 1970-01-01
      • 2022-07-11
      相关资源
      最近更新 更多