문제

I am getting capability error whenever I am trying to set active property tue. I want to bind the grid with the stored procedure that takes one parameter.

If I do it through TQuery How do I specify the fields. I am using wwDBGrid.

MessageMembershipSelectQuery.Params[0].AsString :=  
custQuery.FieldByName('cust_code').AsString;
MessageMembershipSelectQuery.Active := True;

Please guide

도움이 되었습니까?

해결책

Replace you Query component by a StoredProc component. Also, check your parameter data type. If it is indeed a string parameter, then it´s Ok to use AsString, but if the parameter has a different data type, like Integer, for instance, then you should assign it´s value by using, for instance, AsInteger.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top