noaccept(&variable); //在workpanel中,不能接受变量输入,相当与只读功能
default(<attr>,<var>);//属性的默认值,即打开transaction属性的默认值
msg('Supply Code is not null') if null(SupCde);//判断当属性值为null时,弹出错误对话框,起提示作用。
Error('Supply Code is not null') if null(SupCde);//判断当属性值为null时,弹出错误对话框
Error('Supply Code is not null') if SupCde.IsEmpty();//判断当属性值为空时,弹出错误对话框,必须填写。
StopDate.Month() < &mydate.Month() when not &mydate.IsEmpty();//对时间的操作
//in procedure
source:
new //新增一条记录
t_proid = &t_pro_id // <attribute> = <variable>
t_proname = &t_pro_name
endnew
rules:
parm(in:&t_pro_id,&t_pro_name);//传入参数变量,in表示入参,out表示出参,i不写表示既为入参和出参
如:
call(ppro01,&v1,&v2)
pro01:rules
parm(&pv1,out:&pv2);
source:&pv2 = &pv1 * 10
&v2 的值为&pv2的值,即&v2 = &v1 * 10
grid 降序
//load 事件
Event load
for each order (PrdCode) //写 order(PrdCode) 表示降序,不写()表示升序
&vPrdCode = PrdCode
&vPrdName = PrdName
&vPrdPrice= PrdPrice
load
endfor
EndEevent load
/必须在F1到F12事件中
Event 'Pgm' 8//光标在某个编辑框中时,按f8事件
if cusor(Attr|virable) 判断光标是否在属性或变量中
endif
Endevent