程序中有个判断 if DBGrid1.DataSource.DataSet.Recno = 0 then exit;
就是DataSet如果没有记录就退出。可是编译时系统提示“[error]Statement expected, but expression of type 'TMenuItem' found”,什么意思?就连
if 2>1 then exit;也提示同样错误,为什么?谢谢
就是DataSet如果没有记录就退出。可是编译时系统提示“[error]Statement expected, but expression of type 'TMenuItem' found”,什么意思?就连
if 2>1 then exit;也提示同样错误,为什么?谢谢
它提示:说在需要语句的地方,出现了一个'TMenuItem' 类型的表达式
没有错误,是因为像楼上所说使用了菜单,而没有加载TMenuItem。