... mSetDevice )
RETURN .T.
I can use automatic as example:
USE ( file )
GrafTempo( "processing" )
DO WHILE ! Eof()
GrafTempo( RecNo(), LastRec() )
SKIP
ENDDO
or
USE ( file )
INDEX ON field->x FOR GrafTempo( RecNo(), LastRec() )
or manual
USE ( File ) INDEX ( file )
nAtual ...
Search found 185 matches: lastrec
Searched query: lastrec
- Mon Feb 10, 2025 1:46 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Text scroll and time graph
- Replies: 2
- Views: 314
- Wed Jan 22, 2025 5:53 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: multi-column popup menu
- Replies: 13
- Views: 31355
Re: multi-column popup menu
... 2 ]
local n
local aItems := {}
DEFAULT nAr := 1
if !Empty( oMnu )
if oMnu:nLimit > 0
( Alias( nAr ) )->( DbGoTo( ( Alias( 1 ) )->( LastRec() ) - oMnu:nLimit + 1 ) )
if ( Alias( nAr ) )->( !Eof() )
oMnu:nPage := if( ( ( Alias( nAr ) )->( LastRec() ) % oMnu:nLimit ) = 0, ;
( ( Alias ...
local n
local aItems := {}
DEFAULT nAr := 1
if !Empty( oMnu )
if oMnu:nLimit > 0
( Alias( nAr ) )->( DbGoTo( ( Alias( 1 ) )->( LastRec() ) - oMnu:nLimit + 1 ) )
if ( Alias( nAr ) )->( !Eof() )
oMnu:nPage := if( ( ( Alias( nAr ) )->( LastRec() ) % oMnu:nLimit ) = 0, ;
( ( Alias ...
- Wed Nov 20, 2024 11:50 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Soporte a mariaConnect ?
- Replies: 11
- Views: 2736
Re: Soporte a mariaConnect ?
... y rowSet... tienen metodos de navegacion y ordenaminento,,,,
Navigation:
Supports all methods of TDatabase like GoTop,GoBottom,GoTo,Skip,Eof,Bof,LastRec,
RecCount,KeyCount,KeyGoTo, etc
Also supports aliased methods compatible with ADO
MoveFirst,MoveLast,Move,BookMark,AbsolutePosition, etc
La ...
Navigation:
Supports all methods of TDatabase like GoTop,GoBottom,GoTo,Skip,Eof,Bof,LastRec,
RecCount,KeyCount,KeyGoTo, etc
Also supports aliased methods compatible with ADO
MoveFirst,MoveLast,Move,BookMark,AbsolutePosition, etc
La ...
- Sat Oct 12, 2024 9:41 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: help to make a condition
- Replies: 2
- Views: 581
help to make a condition
Insert a code block
I have
sample nLastRecords:= 2000
IF nLastRecords > 0
nInit:=olotto:lastrec()-nLastRecords
nEnd:= olotto:lastrec()
ENDIF
and I must insert this on a codeblock
bFor:= { || recno() <= nInit .and. recno() >= nEnd }
but make error
I have
sample nLastRecords:= 2000
IF nLastRecords > 0
nInit:=olotto:lastrec()-nLastRecords
nEnd:= olotto:lastrec()
ENDIF
and I must insert this on a codeblock
bFor:= { || recno() <= nInit .and. recno() >= nEnd }
but make error
- Fri Oct 11, 2024 11:58 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Creation Array from Tdatabase
- Replies: 2
- Views: 370
Creation Array from Tdatabase
... a database
I need to insert several conditions
Now I tried making a filter
oConteggio:=TDatabase():Open( , "Lotto", "DBFCDX", .T. )
IF nLastRecords > 0
nInit:=oConteggio:lastrec()-nLastRecords
nEnd:= oConteggio:lastrec()
ENDIF
oConteggio:Exec( <||
SET FILTER TO ( dFirst <= FIELD ...
I need to insert several conditions
Now I tried making a filter
oConteggio:=TDatabase():Open( , "Lotto", "DBFCDX", .T. )
IF nLastRecords > 0
nInit:=oConteggio:lastrec()-nLastRecords
nEnd:= oConteggio:lastrec()
ENDIF
oConteggio:Exec( <||
SET FILTER TO ( dFirst <= FIELD ...
- Mon Aug 19, 2024 3:30 am
- Forum: FiveWin para Harbour/xHarbour
- Topic: FWH64 : ERROR SE SALE DEL SISTEMA
- Replies: 33
- Views: 7755
Re: FWH64 : ERROR SE SALE DEL SISTEMA
... cMsg := "SELECT * FROM personal WHERE codigo="+ClipValue2Sql( cCodigo )
if !modo
cMsg += " AND id != "+ClipValue2Sql( oQry:id )
Endif
cQry := oServer:Query( cMsg )
If cQry:lastrec()>0
lRet := .F.
MsgStop("Codigo ingresado ya existe !!!","Stop" )
EndIf
cQry:End()
EndIf
Return lRet
if !modo
cMsg += " AND id != "+ClipValue2Sql( oQry:id )
Endif
cQry := oServer:Query( cMsg )
If cQry:lastrec()>0
lRet := .F.
MsgStop("Codigo ingresado ya existe !!!","Stop" )
EndIf
cQry:End()
EndIf
Return lRet
- Mon Jun 03, 2024 9:03 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Error Irrecuperable 9009 ( Solucion en 32bits )
- Replies: 15
- Views: 1784
Re: Error Irrecuperable 9009 ( Solucionado )
... HB_GCALL( .F. )
xnn:=0
Endif
cMsg := "SELECT * FROM personal_mov WHERE id = "+ClipValue2Sql( cQry:id )
aQry := lServer:Query( cMsg )
If aQry:lastrec()>0
oWait:Say(1,3,"Espere, actualizando Reg.: "+Alltrim( Str( cQry:id ) )+" -- "+Alltrim(Str(nnc))+" ok..."+Space(30) )
SysRefresh()
cMsg ...
xnn:=0
Endif
cMsg := "SELECT * FROM personal_mov WHERE id = "+ClipValue2Sql( cQry:id )
aQry := lServer:Query( cMsg )
If aQry:lastrec()>0
oWait:Say(1,3,"Espere, actualizando Reg.: "+Alltrim( Str( cQry:id ) )+" -- "+Alltrim(Str(nnc))+" ok..."+Space(30) )
SysRefresh()
cMsg ...
- Mon Jun 03, 2024 4:07 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Error Irrecuperable 9009 ( Solucion en 32bits )
- Replies: 15
- Views: 1784
Re: Error Irrecuperable 9009
... Space(40) )
SysRefresh()
cMsg := "SELECT * FROM personal_mov WHERE id = "+ClipValue2Sql( cQry:id )
aQry := lServer:Query( cMsg )
If aQry:lastrec()>0
oWait:Say(1,3,"Espere, actualizando Reg.: "+Alltrim( Str( cQry:id ) )+" -- "+Alltrim(Str(nnc))+" ok..."+Space(30) )
SysRefresh()
cMsg ...
SysRefresh()
cMsg := "SELECT * FROM personal_mov WHERE id = "+ClipValue2Sql( cQry:id )
aQry := lServer:Query( cMsg )
If aQry:lastrec()>0
oWait:Say(1,3,"Espere, actualizando Reg.: "+Alltrim( Str( cQry:id ) )+" -- "+Alltrim(Str(nnc))+" ok..."+Space(30) )
SysRefresh()
cMsg ...
- Fri Feb 23, 2024 4:39 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Count xbrowse records
- Replies: 5
- Views: 777
Re: Count xbrowse records
... 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 index ...
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 index ...
- Fri Feb 23, 2024 1:26 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: Count xbrowse records
- Replies: 5
- Views: 777
Re: Count xbrowse records
... 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 index ...
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 index ...
- Fri Feb 23, 2024 4:07 am
- Forum: FiveWin for Harbour/xHarbour
- Topic: Count xbrowse records
- Replies: 5
- Views: 777
Re: Count xbrowse records
... 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 index ...
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 index ...
- Fri Feb 02, 2024 12:55 pm
- Forum: FiveWin for Harbour/xHarbour
- Topic: RAO advice on using Mysql
- Replies: 12
- Views: 2520
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()
Close() or End()
---------------
NOT SUPPORTED:
Seek(), Filter ...
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()
Close() or End()
---------------
NOT SUPPORTED:
Seek(), Filter ...
- Tue Aug 22, 2023 12:22 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: Dificultad con METERS
- Replies: 5
- Views: 647
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 ...
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 ...
- Tue Mar 21, 2023 2:41 pm
- Forum: FiveWin para Harbour/xHarbour
- Topic: XBrowse con xBase - Efecto Pijama - Error en Red
- Replies: 3
- Views: 730
Re: XBrowse con xBase - Efecto Pijama - Error en Red
... lAddColumns, 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, OrdKeyRelPos ...
::::::
else
if ( ( ::cAlias )->( RDDName() ) == "DBFCDX" )
* if ( ::cAlias )->( LASTREC() ) > 10000 .and. lFileIsRemote( ( ::cAlias )->( DBINFO( DBI_FULLPATH ) ) )
* DEFAULT ::bKeyNo := { |n| ( ::cAlias )->( If( n == nil, OrdKeyRelPos ...
- 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: 1051
Re: Creation an array Multiple on Horizontal on Xbrowse
... 40,50,100,200,300,500) 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 + "' <= Ltrim(str(FIELD ...
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 + "' <= Ltrim(str(FIELD ...