Page 1 of 1

For Rao,Requery in ADO

Posted: Fri Mar 12, 2021 8:07 am
by Maurizio
Dear Mr. Rao,
i saw in the example mariaqry.prg that it is possible to use requery

Code: Select all | Expand

if oRs:Requery( cSql )
         oRs:SetXbrColumns( oBrw )
         oBrw:nEditTypes := EDIT_GET
         oBrw:GoTop()
         oBrw:Refresh()
         return .t.
      endif

Is it possible to use the same procedure also with ADO?

Thanks
Maurizio

Re: For Rao,Requery in ADO

Posted: Fri Mar 12, 2021 2:51 pm
by nageswaragunupudi
This is not relevant or not necessary for ADO.
The columns of a recordset do not change after requery.
So simple

Code: Select all | Expand


oBrw:oRs:Requery()
oBrw:Refresh()
 

is enough.

Re: For Rao,Requery in ADO

Posted: Fri Mar 12, 2021 4:46 pm
by Maurizio
Grazie RAO

Maurizio