在数据库窗口的retrieveend事件下写:
parent.st_1.text = string(rowcount())
不过,一般显示数据总行数,会在数据库窗口小计行中,添加计算列显示总行数,更直观。