I want to revised current query but still keep current query alike.
oCn:Rowset('select * from customer where id=1')
revised query to
::cQuery += ::cQuery+' or id=2'
How can I do it?
Thanks in advance,
cSql := "select * from customer ?"
oRs := oCn:RowSet( cSql, { "where id = 1" } )
// Later
oRs:ReQuery( { "where id = 1 or id = 2" } )
cSql := "select * from customer where id between ? and ?"
oRs := oCn:RowSet( cSql, { 1, 1 } )
// Later
oRs := oCn:RowSet( cSql, { 1, 2 } )
cSql := "select * from customer where od = 1"
oRs := oCn:RowSet( cSql )
// later
cSql += " or id = 2"
oRs:Requery( cSql )
oRs := oCn:RowSet( "select * from customer" )
// later
oRs:Requery( "select * from states" )
nageswaragunupudi wrote:With FWH 1805, you have the maximum possible flexibility.
Example:
- Code: Select all Expand view
oRs := oCn:RowSet( "select * from customer" )
// later
oRs:Requery( "select * from states" )
What more flexibilty you want?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 44 guests