1、设置3个变量%a%、%b%、%c%;
2、在窗口设置一个标签" ";
3、设置一个按钮;
4、设置按钮公式:
SortCol(GridName,"",1) And
SetVariable("%a%",FindText(GridName,"日期1","日期1"," <> ","",-1)) And
SortCol(GridName,"日期2",1) And
SetVariable("%b%",FindText(GridName,"日期2","日期2"," <> ","",-1)) And
SortCol(GridName,"日期3",1) And
SetVariable("%c%",FindText(GridName,"日期3","日期3"," <> ","",-1)) And
SetLabel(" ",Text(Max([%a%],[%b%],[%c%])))
最近的日期就可以在标签显示。