I can Know how many records are on xbrowse ?
I explain
I would like to activate the arrows for moving the records (up and down) only when the records are greater than the normal number displayed in the xbrowse table
nageswaragunupudi wrote:oBrw:nLen
But in case of DBF, please see
viewtopic.php?f=3&t=44259&p=268091&hilit=DELETED&sid=ff38ec55e29d34b39e3578311e2aeb8d#p268091
....
:CreateFromCode()
END
lArrows:= IIF( oBrw:nDataRows<oBrw:nLen,.t.,.f.)
DEFINE BUTTON/BTNBMP ..... (arrows) ... WHEN ( oBrw:nDataRows >= oBrw:nLen )
nageswaragunupudi wrote:oBrw:nLen and oBrw:nDataRows get their values after the first Refresh/paint of the browse.
Also oBrw:nDataRows changes when browse is resized.
- Code: Select all Expand view RUN
DEFINE BUTTON/BTNBMP ..... (arrows) ... WHEN ( oBrw:nDataRows >= oBrw:nLen )
would work
@ oBrw:nbottom+2, oBrw:nWidth-86 BTNBMP aBtn[ 5 ] SIZE 30, 25 PIXEL OF oDlg FLAT GDIP NOROUND ; //
RESOURCE "GRID_BOTTOM", "", hBmp, "" ;
ACTION oBrw:KeyDown(VK_DOWN, 0) TOOLTIP "avanti" WHEN ( oBrw:nDataRows >= oBrw:nLen )
@ oBrw:nbottom+2, oBrw:nWidth-56 BTNBMP aBtn[ 6 ] SIZE 30, 25 PIXEL OF oDlg FLAT GDIP NOROUND ; //
RESOURCE "GRID_TOP", "", hBmp1, "" ;
ACTION oBrw:KeyDown(VK_UP, 0) TOOLTIP "indietro" WHEN ( oBrw:nDataRows >= oBrw:nLen )
oDbf:OrdKeyCount() )
nageswaragunupudi wrote:oDbf:OrdKeyCount() )
This works only for oDbf.
Using oBrw:nLen or oBrw:KeyCount() works for all datasources.
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 48 guests