Dear Mr.Rao,
Can I do like below to read Large RowSet?
oRs := RowSet() limit with 1000 records.
XBROWSE oLbx
oLbx:bChange := {|| if(oRs:RecCount()=oRs:RecNo(), (oRs:ReadNext(1000), oLbx:Refresh()), ) }
Thanks in advance.
dutch wrote:Dear Mr.Rao,
Can I do like below to read Large RowSet?
oRs := RowSet() limit with 1000 records.
XBROWSE oLbx
oLbx:bChange := {|| if(oRs:RecCount()=oRs:RecNo(), (oRs:ReadNext(1000), oLbx:Refresh()), ) }
Thanks in advance.
oServer:SelectDB(cLoginTable)
::oDB := oServer:Query("SELECT * FROM postmsf ORDER BY zipcode LIMIT 1000")
richard-service wrote:Hi Dutch,
How about use this
- Code: Select all Expand view
oServer:SelectDB(cLoginTable)
::oDB := oServer:Query("SELECT * FROM postmsf ORDER BY zipcode LIMIT 1000")
oRsAcc := TOleAuto():New( "ADODB.Recordset" )
oRsAcc:CursorType := 1 // opendkeyset
oRsAcc:CursorLocation := 3 // local cache
oRsAcc:LockType := 3 // lockoportunistic
cSQL := "SELECT * FROM ACCIDENT order by date"
TRY
oRsAcc:Open(cSQL,xConnect )
CATCH oErr
MsgInfo( "Error in Opening ACCIDENT table" )
RETURN(.F.)
END TRY
#include "fivewin.ch"
function Main()
local oCn, oRs
oCn := FW_DemoDB(1) // if you have FWH17.01
// if not you establish connection to your server
oRs := oCn:RowSet( "custbig", 1000 )
oRs:lAutoExpand := .t.
XBROWSER oRs FASTEDIT SHOW RECID //AUTOFIT
oCn:Close()
return nil
Function main
oRs := oServer:RowSet( "fogst", 1000 )
oRs:lAutoExpand := .t.
XBROWSER oRs SHOW SLNUM FASTEDIT
oServer:close()
return nil
Function main
oRs := oServer:RowSet( "select * from fogst limit 1000")
oRs:lAutoExpand := .t.
XBROWSER oRs SHOW SLNUM FASTEDIT
oServer:close()
return nil
nageswaragunupudi wrote:Please try this sample
- Code: Select all Expand view
#include "fivewin.ch"
function Main()
local oCn, oRs
oCn := FW_DemoDB(1) // if you have FWH17.01
// if not you establish connection to your server
oRs := oCn:RowSet( "custbig", 1000 )
oRs:lAutoExpand := .t.
XBROWSER oRs FASTEDIT SHOW RECID //AUTOFIT
oCn:Close()
return nil
During browse, keep pressing down arrow or page down button and you keep seeing the rowset growing automatically.
Incidentally the table `custbig` on the demo server has one million records.
Note: If you connect to your server, instead of "custbig" use any large table name. Make sure the table has a primary key.
Mr Rick
This is FWH library for MySql.
This is not possible with any other alternative
oRs := oServer:RowSet( "select * from fogst limit 1000")
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: Google [Bot] and 93 guests