procedure TFqyqk.FiltedByXkzh(xh: string);
var
S: string;
begin
if not ChuUser then
S := '管理部门=' + QuotedStr(UserGroup);***qutoedstr()大家知道大概什么
S := S + ' and 许可证注册号=' + QuotedStr(xh);**************** 意思 DelTokenAtFirst(S, ' and ');*****DelTokenAtFirst()什么意思?
tQyjbqkb.Filter := S;
pnlSearch.Hint := S;
strRecCount := IntTostr(RecordCount('qyjbqkb', tQyjbqkb.Filter));
end; 这句什么意思!
var
S: string;
begin
if not ChuUser then
S := '管理部门=' + QuotedStr(UserGroup);***qutoedstr()大家知道大概什么
S := S + ' and 许可证注册号=' + QuotedStr(xh);**************** 意思 DelTokenAtFirst(S, ' and ');*****DelTokenAtFirst()什么意思?
tQyjbqkb.Filter := S;
pnlSearch.Hint := S;
strRecCount := IntTostr(RecordCount('qyjbqkb', tQyjbqkb.Filter));
end; 这句什么意思!
DelTokenAtFirst()?自定义的过程吧
估计就是除掉第一个无用的' and '~~
我经常用在SQL语句中。
DelTokenAtFirst()是自定义函数,你可以看一下源代码。