Dim cnt As integer = DataTables("xxx").Compute("Count(客户)","付款状态='未付款'")
参考:
http://www.foxtable.com/help/topics/0393.htm