C/AL NAV 输入文本框

问题描述

我正在尝试让用户输入进行计算并将结果作为消息返回。案例 POS 服务员输入投标金额,然后系统返回零钱给客户。

我创建了一个 dotnet 变量 #window Microsoft.VisualBasic.Interaction.'Microsoft.VisualBasic,Version=10.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a'

Window.InputBox('INPUT','Enter Amount','Amount',100,100);
amount:= amount-"Amount Inc. VAT";
message('%1',amount);  

页面运行时出现此错误 enter image description here

解决方法

在变量的属性上设置 RunOClient