Search found 177 matches: lastrec

Return to advanced search

Re: Count xbrowse records

... the number of records in a DBF which are not deleted. There is no simple function for this. Does not matter whether SET DELETED is ON or OFF: Both LASTREC() and RECCOUNT() include deleted records also. ORDKEYCOUNT() also does not exclude deleted records by itself, but honors filters, scopes and ...
by wartiaga
Fri Feb 23, 2024 4:39 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 254

Re: Count xbrowse records

... the number of records in a DBF which are not deleted. There is no simple function for this. Does not matter whether SET DELETED is ON or OFF: Both LASTREC() and RECCOUNT() include deleted records also. ORDKEYCOUNT() also does not exclude deleted records by itself, but honors filters, scopes and ...
by Silvio.Falconi
Fri Feb 23, 2024 1:26 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 254

Re: Count xbrowse records

... the number of records in a DBF which are not deleted. There is no simple function for this. Does not matter whether SET DELETED is ON or OFF: Both LASTREC() and RECCOUNT() include deleted records also. ORDKEYCOUNT() also does not exclude deleted records by itself, but honors filters, scopes and ...
by nageswaragunupudi
Fri Feb 23, 2024 4:07 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Count xbrowse records
Replies: 5
Views: 254

Re: RAO advice on using Mysql

METHODS: RecCount(), LastRec(), KeyCount(),RecNo(), KeyNo() GoTop(),GoBottom(),GoTo(nRec),KeyGoTo(nKey),Skip(n) FCount(),FieldPos(c),FieldName(),FieldLen(),FieldDec(),FieldType() FieldGet(),FieldPut() SetOrder(cSort,,lDescend) Save() ...
by nageswaragunupudi
Fri Feb 02, 2024 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 979

Dificultad con METERS

... := 0 Private xTotVtas := 0 Private oMensaje, cMensaje:='' ..... if veoclifor(@nCliente,@cVeoCli,.t.) if nCliente = 0 xTotCli := CliFor->(LastRec()) else xTotCli := 1 endif select DetVtaF set filter to str(DetVtaF->Cliente,4) = str(CliFor->CodCliente,4) .and. DetVtaF->FecVenta>=dDesde ...
by José Camilo
Tue Aug 22, 2023 12:22 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Dificultad con METERS
Replies: 5
Views: 256

Re: XBrowse con xBase - Efecto Pijama - Error en Red

... lAutoOrder, aFldNames, aRows ) CLASS TXBrowse :::::: else if ( ( ::cAlias )->( RDDName() ) == "DBFCDX" ) * if ( ::cAlias )->( LASTREC() ) > 10000 .and. lFileIsRemote( ( ::cAlias )->( DBINFO( DBI_FULLPATH ) ) ) * DEFAULT ::bKeyNo := { |n| ( ::cAlias )->( If( n == nil, ...
by José
Tue Mar 21, 2023 2:41 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: XBrowse con xBase - Efecto Pijama - Error en Red
Replies: 3
Views: 406

Re: Creation an array Multiple on Horizontal on Xbrowse

... records How I must set the filter ? I try with nCount is the number selected by final user IF nCount > 0 nInit:=oDbf:lastrec()-nCount nEnd:= oDbf:lastrec() ENDIF cFilter:= "LTRIM(STR(YEAR(FIELD->DATA)))= '" + nyear + "' .and. '"+; nInit + "' ...
by Silvio.Falconi
Tue Sep 27, 2022 8:45 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Creation an array Multiple on Horizontal on Xbrowse - RESOLV
Replies: 7
Views: 770

Re: show only some records on Xbrowse ( nRecords, year)

...       oDbf:GoTop()  How I can add the number of records to show ? sample only 5 records give me error Here nInit:=Ltrim(str(oDbf:lastrec()-nCount)) nEnd:=Ltrim(str(oDbf:lastrec())) cFilter:= "LTRIM(STR(YEAR(FIELD->DATA)))= '" + nyear + "' .and. '"+; nInit ...
by Silvio.Falconi
Tue Sep 27, 2022 10:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 623

Re: show only some records on Xbrowse ( nRecords, year)

Antonio Linares wrote:Dear Silvio,

SET FILTER is very slow

Using an index with scopes should be better


with tdatabase I not Know How make it


IF nCount > 0
nInit:=oDbf:lastrec()-nCount
nEnd:= oDbf:lastrec()
ENDIF

oDbf:setscope(0,nInit)
oDbf:setscope(1,nEnd)


then for the year ?
by Silvio.Falconi
Tue Sep 27, 2022 10:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: show only some records on Xbrowse ( nRecords, year)
Replies: 10
Views: 623

Re: Nages Help for locate

... locate for year(FIELD->data) != anno2 ; next 60 // endif oDbf:load() if (oDbf:Found()) nLast:= oDbf:RecNo() - 1 else nLast:= oDbf:LastRec() endif locate for year(FIELD->data) = VAL(anno1 ) oDbf:load() if (!oDbf:Found()) nFirst:= 1 else nFirst:= oDbf:RecNo() endif AaDd( aLocate,{nFirst,nLast,anno1, ...
by Silvio.Falconi
Sun Apr 17, 2022 11:46 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Nages Help for locate --- Resolved
Replies: 1
Views: 123

Re: como saber que cantidad de registros devolvio una consulta?

Ariel wrote:Goosfancito,

estas usando :nRecCount (por eso te da error) y debes usar el metodo :RecCount(), o :LastRec()

Saludos.


niinguno funciona on MARIADB que trae ya incorporado FWH
by goosfancito
Wed Oct 06, 2021 5:05 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: como saber que cantidad de registros devolvio una consulta?
Replies: 7
Views: 793

Re: como saber que cantidad de registros devolvio una consulta?

Goosfancito,

estas usando :nRecCount (por eso te da error) y debes usar el metodo :RecCount(), o :LastRec()

Saludos.
by Ariel
Wed Oct 06, 2021 12:53 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: como saber que cantidad de registros devolvio una consulta?
Replies: 7
Views: 793

Re: Detectar si existe campo en tabla MySQL

... WHERE TABLE_SCHEMA=DATABASE()AND COLUMN_NAME='actaconformidad_mod' AND TABLE_NAME='formularios' " cQry := oServer:Query( cMsg ) If cQry:lastrec()=0 cMsg := "ALTER TABLE formularios " cMsg += "ADD COLUMN actaconformidad_mod VARCHAR(80) NULL AFTER actaconformidad" oServer:Execute( ...
by CARLOS ATUNCAR
Tue Jan 05, 2021 7:08 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Detectar si existe campo en tabla MySQL
Replies: 7
Views: 716

Re: Dolphin to FW MySql/Maria upgrade ...

... Is it some methods to replace this tDolphin code to FW MySql/Maria? oQry := oServer:Query( "CHECK TABLE customer" )? oQry:lastrec(), oQry:msg_type, oQry:msg_textoQry:end()  This code code produce error: Error description: Error BASE/1004 Class: 'NIL' has ...
by nageswaragunupudi
Mon Jun 15, 2020 5:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dolphin to FW MySql/Maria upgrade (Solved) ...
Replies: 6
Views: 1122

Re: Dolphin to FW MySql/Maria upgrade ...

... ) .and. ::oWnd:IsKindOf( "TDIALOG" ) )      RETURN DLGC_WANTALLKEYS   ENDCASERETURN NIL  for example for add the method lastrec ...  EXTEND CLASS FWMARIACONNECTION WITH METHOD lastrec...FUNCTION Lastrec()   LOCAL Self := hb_QSelf()RETURN ::RecCount..  ...
by carlos vargas
Mon Jun 15, 2020 4:18 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Dolphin to FW MySql/Maria upgrade (Solved) ...
Replies: 6
Views: 1122
Next

Return to advanced search