G
Gingerzy
Unregistered / Unconfirmed
GUEST, unregistred user!
用AdoQuery执行存储过程,有两个返回参数pageCount和Counts。但在获取字段值时报错误:Field "pageCount" Not Found 代码如下: sExecSql := 'declare @pageCount int ' +#13+' declare @Counts int ' +#13+' exec p_pageList ''V_clinicStok'',''*'',' +'15,1,''id'',0,'''+sConn+''',''id'',0,@pageCount output,@Counts output' +#13+' select @pageCount as PageCount,@counts as Counts '; with Usersession.qryStore do begin Close; Sql.Clear; Sql.Text := sExecSql; Open; iPageCount := FieldByName('PageCount').AsInteger; //这句报错 end;