Note:
The codeblock bSkip uses the function:
nSkipped := DbSkipper( nRecs ) // xHarbour
nSkipped := __DbSkipper( nRecs ) // Harbour
The functionality is similar to this function
function MyDbfSkipper( nRecs )
local nKeyFrom := OrdKeyNo()
DBSKIP( nRecs )
if Eof()
DbGoBottom()
elseif Bof ...
Search found 39 matches: nrecs
Searched query: nrecs
- Thu Jan 23, 2025 2:25 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: xbrowse, dbf and codeblock
- Replies: 10
- Views: 19860
- Thu Oct 24, 2019 1:12 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: conflicto con database
- Replies: 4
- Views: 1207
Re: conflicto con database
... REDEFINE LISTBOX olbm FIELDS (oDbf:calias) ->NAPE ID 101;
ON DBLCLICK (lacepto:= .t.,odlg:end()) of odlg
olbm:setfocus()
olbm:bSkip := { | nRecs | odbf:Skipper( nRecs ) } 1-Quite esta parte
olbm:bSeek := {|lRet| olbm:DbfSeek(.T.) }
oLbm:bkeydown := {|nkey,nflags| iif(nKey = VK_RETURN ...
ON DBLCLICK (lacepto:= .t.,odlg:end()) of odlg
olbm:setfocus()
olbm:bSkip := { | nRecs | odbf:Skipper( nRecs ) } 1-Quite esta parte
olbm:bSeek := {|lRet| olbm:DbfSeek(.T.) }
oLbm:bkeydown := {|nkey,nflags| iif(nKey = VK_RETURN ...
- Tue Feb 26, 2019 9:41 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: FILLARRAY en :Rowset() ? Mr.Rao
- Replies: 6
- Views: 1150
Re: FILLARRAY en :Rowset() ? Mr.Rao
... GetRows(). This method has been there since the beginning,
aData := oRs:GetRows()
This method is further enhanced in 18.07:
method GetRows( [anRecs], [nStartPos], [aFields], [lWithRecNum] )
--> Returns array containing values of the records (default all
records) meeting the filter condition ...
aData := oRs:GetRows()
This method is further enhanced in 18.07:
method GetRows( [anRecs], [nStartPos], [aFields], [lWithRecNum] )
--> Returns array containing values of the records (default all
records) meeting the filter condition ...
- Fri Sep 21, 2018 8:58 pm
- Forum: WhatsNew / Novedades
- Topic: New FTDN July 2018 (FWH 18.07)
- Replies: 5
- Views: 5128
Re: New FTDN July 2018 (FWH 18.07)
... expresiones usando nombres de campos.
Por ejemplo: oRs:FieldGet( { "NAME+','+CODE","ID",":RecNo" } ) --> aValues
- Método mejorado GetRows ( [anRecs], [nStartPos], [aFields], [lWithRecNum] )
-> Devuelve una matriz que contiene los valores de los registros (por defecto todos los
registros) que ...
Por ejemplo: oRs:FieldGet( { "NAME+','+CODE","ID",":RecNo" } ) --> aValues
- Método mejorado GetRows ( [anRecs], [nStartPos], [aFields], [lWithRecNum] )
-> Devuelve una matriz que contiene los valores de los registros (por defecto todos los
registros) que ...
- Fri Sep 21, 2018 8:42 am
- Forum: WhatsNew / Novedades
- Topic: New FTDN July 2018 (FWH 18.07)
- Replies: 5
- Views: 5128
New FTDN July 2018 (FWH 18.07)
... field names/ expressions
using field names.
Eg: oRs:FieldGet( { "NAME+','+CODE","ID",":RecNo" } ) --> aValues
- Enhanced
method GetRows( [anRecs], [nStartPos], [aFields], [lWithRecNum] )
--> Returns array containing values of the records (default all
records) meeting the filter condition ...
using field names.
Eg: oRs:FieldGet( { "NAME+','+CODE","ID",":RecNo" } ) --> aValues
- Enhanced
method GetRows( [anRecs], [nStartPos], [aFields], [lWithRecNum] )
--> Returns array containing values of the records (default all
records) meeting the filter condition ...
- Mon Jun 12, 2017 1:08 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Twbrowse skipper tdata
- Replies: 3
- Views: 1329
Twbrowse skipper tdata
HI, i have a old appl, i try compile with fwh17.04 and my twbrowse is empty, without records, i use twbrowse, tdata (from james), something is changed ? i dont change the code of this appl for years.
this code Works or something is changed:
oLbx:bSkip := { | nRecs | oCCBA:skipper( nRecs ) }
thanks
this code Works or something is changed:
oLbx:bSkip := { | nRecs | oCCBA:skipper( nRecs ) }
thanks
- Wed Sep 09, 2015 4:43 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Problem with TPanel Paint Method
- Replies: 12
- Views: 2956
Re: Problem with TPanel Paint Method
... name, and that name changes after awhile. Then the next few times you click it changes to the new name.
I am using FWH 15.05/xHarbour
Update 2: OK, I found the problem. Replace this line:
oBrw:bSkip:= {|nRecs| oCust:skipper(nRecs) }
With this:
oBrw:setoDBF( oCust )
And all is OK. My bad!
James
I am using FWH 15.05/xHarbour
Update 2: OK, I found the problem. Replace this line:
oBrw:bSkip:= {|nRecs| oCust:skipper(nRecs) }
With this:
oBrw:setoDBF( oCust )
And all is OK. My bad!
James
- Fri Oct 25, 2013 6:19 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: using the method bskip wbrowse
- Replies: 1
- Views: 588
using the method bskip wbrowse
... using the method of bskip browse, but I can not make it work, could someone give me an example?
Follow what I'm doing:
oBrwConsul:bSkip := { | nRecs | SkipEstoq( nRadio, cAlias, nRecs ) }
...
...
...
FUNCTION SkipEstoq( nRadio, cAlias, nRecords )
LOCAL nSkipped
DEFAULT nRecords := 1
IF ...
Follow what I'm doing:
oBrwConsul:bSkip := { | nRecs | SkipEstoq( nRadio, cAlias, nRecs ) }
...
...
...
FUNCTION SkipEstoq( nRadio, cAlias, nRecords )
LOCAL nSkipped
DEFAULT nRecords := 1
IF ...
- Fri Oct 25, 2013 5:49 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Utilizando el método bSkip wbrowse
- Replies: 0
- Views: 310
Utilizando el método bSkip wbrowse
... método de bSkip navegar, pero no puedo hacer que funcione, podría alguien darme un ejemplo?
Seguir lo que estoy haciendo:
oBrwConsul:bSkip := { | nRecs | SkipEstoq( nRadio, cAlias, nRecs ) }
...
...
...
FUNCTION SkipEstoq( nRadio, cAlias, nRecords )
LOCAL nSkipped
DEFAULT nRecords := 1
IF ...
Seguir lo que estoy haciendo:
oBrwConsul:bSkip := { | nRecs | SkipEstoq( nRadio, cAlias, nRecs ) }
...
...
...
FUNCTION SkipEstoq( nRadio, cAlias, nRecords )
LOCAL nSkipped
DEFAULT nRecords := 1
IF ...
- Fri Dec 14, 2012 8:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: listbox recno() display
- Replies: 7
- Views: 1460
listbox recno() display
... Orgin", "A", "B", "C", "D", "DR","Notes" ;
FIELDSIZES 60, 45, 45, 45, 45, 45 , 40, 50 ;
SIZE 284, 137 OF oDlg
// possible ??
// space(5)+ {|nRecs|,dbskipper()}
//trans(oTmd:recno(),'99,999') +;
// ' / '+trans(oTmd:lastrec(),'99,999') OF oDlg
// possible
//{|nRecs|,oLbx:keyno() }
Any ...
FIELDSIZES 60, 45, 45, 45, 45, 45 , 40, 50 ;
SIZE 284, 137 OF oDlg
// possible ??
// space(5)+ {|nRecs|,dbskipper()}
//trans(oTmd:recno(),'99,999') +;
// ' / '+trans(oTmd:lastrec(),'99,999') OF oDlg
// possible
//{|nRecs|,oLbx:keyno() }
Any ...
- Tue Mar 13, 2012 12:16 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: slow xBrowse and ADS/AIS via Internet
- Replies: 12
- Views: 4740
Re: slow xBrowse and ADS/AIS via Internet
Hi Lucas,
1. Issue cAlias->( AdsCacheRecords( <nRecs> ) ) or TABLE->( AdsCacheRecords( 50 ) ).. in my case, it improves the speed.
2. on your ads.ini:
This also improves my speed.
Kind regards,
1. Issue cAlias->( AdsCacheRecords( <nRecs> ) ) or TABLE->( AdsCacheRecords( 50 ) ).. in my case, it improves the speed.
2. on your ads.ini:
[Settings]
COMPRESSION = Always
USE_TCP_IP = 1
PACKET_SIZE = 512 ;or 1024
This also improves my speed.
Kind regards,
- Thu Jul 22, 2010 12:31 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Comments and requests about TWBrowse
- Replies: 58
- Views: 16044
Re: Comments and requests about TWBrowse
... INDEX TO customer
define window oWnd title "Test Browse"
define buttonbar oBar of oWnd
@ 0 , 0 listbox oLbx fields of oWnd
oLbx:bSkip:= {|nRecs| ( logfile( "events.txt" , { oLbx:nRowCount() , recno() } ), customer->(dbskipper( nRecs)) ) }
oWnd:oClient:= oLbx
activate window oWnd
return ...
define window oWnd title "Test Browse"
define buttonbar oBar of oWnd
@ 0 , 0 listbox oLbx fields of oWnd
oLbx:bSkip:= {|nRecs| ( logfile( "events.txt" , { oLbx:nRowCount() , recno() } ), customer->(dbskipper( nRecs)) ) }
oWnd:oClient:= oLbx
activate window oWnd
return ...
- Thu Jul 22, 2010 8:01 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Comments and requests about TWBrowse
- Replies: 58
- Views: 16044
Re: Comments and requests about TWBrowse
Enrico, James,
I put this line of code in a my application
oBrw:bSkip:= {|nRecs| ( logfile( "eventi.txt" , { oBrw:nRowCount() , recno() } ), tabella->(dbskipper( nRecs)) ) }
tabella.dbf has 11400 records it's about 9 MB
tabella.cdx has 20 TAG inside it's about 1,5 MB
In eventi.txt file I found ...
I put this line of code in a my application
oBrw:bSkip:= {|nRecs| ( logfile( "eventi.txt" , { oBrw:nRowCount() , recno() } ), tabella->(dbskipper( nRecs)) ) }
tabella.dbf has 11400 records it's about 9 MB
tabella.cdx has 20 TAG inside it's about 1,5 MB
In eventi.txt file I found ...
- Fri Mar 26, 2010 12:59 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: problema con database 2
- Replies: 2
- Views: 1317
problema con database 2
... Localidad", "Provincia",;
"Telefono","Cuit","Iva","Rubro","Vendedor"}
oLbx:aColSizes := {60,210,190,190,190,160,90,100,180,60}
oLbx:bSkip = { | nRecs | oMae:Skipper( nRecs ) }
oLbx:nLineStyle := 3
oLbx:lAdjlastcol:= .F.
oLbx:nClrBackFocus := CLR_CYAN
oLbx:nClrForeFocus := CLR_WHITE ...
"Telefono","Cuit","Iva","Rubro","Vendedor"}
oLbx:aColSizes := {60,210,190,190,190,160,90,100,180,60}
oLbx:bSkip = { | nRecs | oMae:Skipper( nRecs ) }
oLbx:nLineStyle := 3
oLbx:lAdjlastcol:= .F.
oLbx:nClrBackFocus := CLR_CYAN
oLbx:nClrForeFocus := CLR_WHITE ...
- Tue Oct 13, 2009 4:31 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Improvement to DBFs management ...
- Replies: 21
- Views: 6630
Re: Improvement to DBFs management ...
... databases?
There are several ways to do this with database objects.
You can use the skipper to keep both databases in sync:
oLbx:bSkip:= {| nRecs | oInvoice:skipper( nRecs), oCustomer:seek( oInvoice:invno) }
Then you just define the fields:
@ 0,0 LISTBOX oLbx FIELDS oInvoice:invno, oCust ...
There are several ways to do this with database objects.
You can use the skipper to keep both databases in sync:
oLbx:bSkip:= {| nRecs | oInvoice:skipper( nRecs), oCustomer:seek( oInvoice:invno) }
Then you just define the fields:
@ 0,0 LISTBOX oLbx FIELDS oInvoice:invno, oCust ...