Search found 844 matches: recno

Return to advanced search

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
by Silvio.Falconi
Sat Oct 12, 2024 9:41 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: help to make a condition
Replies: 2
Views: 361

Re: DBF How to obtain an array containing record number

Sql can be used with DBF... (partly forum code) Not sure if the speed is better in Lan than with CDX used by more people. How to get recno() with SQL is not known by me. ChatGPT gave 2 options, but not working with my small knowledge of SQL #include "fivewin.ch"#include "xbrowse.ch"#include ...
by Marc Venken
Wed Oct 09, 2024 9:59 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: DBF How to obtain an array containing record number
Replies: 16
Views: 454

Re: España: Normativa sancionadora sistemas informáticos

... ;                                oTDbfFacAlbDummy, ;                                lPrimerTractament, ;                                @nRecnoAnterior, ;                                @cIdFacturAnterior, ;                                cNumSerieFacturaRegistroAnteriorDummy, ;        ...
by VictorCasajuana
Wed Oct 09, 2024 8:17 am
 
Forum: FiveWin para Harbour/xHarbour
Topic: España: Normativa sancionadora sistemas informáticos
Replies: 331
Views: 53375

Re: España: Normativa sancionadora sistemas informáticos

... ;                                oTDbfFacAlbDummy, ;                                lPrimerTractament, ;                                @nRecnoAnterior, ;                                @cIdFacturAnterior, ;                                cNumSerieFacturaRegistroAnteriorDummy, ;        ...
by FiveWiDi
Tue Oct 08, 2024 4:55 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: España: Normativa sancionadora sistemas informáticos
Replies: 331
Views: 53375

Re: slowness

... all records in a loop and write all matches into $matchRecords[] = [ 'index' => $i, 'fieldValue' => $fieldValue, // Add fieldValue here 'recno' => $i + 1 // Add recno here ]; Then I sort $matchRecords[] usort($matchRecords, function ($a, $b) { return strcmp($a['fieldValue'], $b['fieldValue']); ...
by Otto
Sun Sep 15, 2024 9:44 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: slowness
Replies: 75
Views: 3130

Re: Need Help giide for my program

... RESOURCE "exit" ; ACTION oWndDeposits:End() DEFINE MSGBAR oMsgBar OF oWndDeposits 2007 BrwColors( oBrw ) BrwRecSel( oBrw, "RECNO" ) for each cCol in { "Amount", "Tax", "Total" } oBrw:oCol( cCol ):nFooterType := AGGR_SUM next oBrw:bLDblClick ...
by Otto
Fri Jul 19, 2024 7:20 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Need Help guide for my program.
Replies: 38
Views: 2346

Re: Need Help giide for my program

... RESOURCE "exit" ; ACTION oWndDeposits:End() DEFINE MSGBAR oMsgBar OF oWndDeposits 2007 BrwColors( oBrw ) BrwRecSel( oBrw, "RECNO" ) for each cCol in { "Amount", "Tax", "Total" } oBrw:oCol( cCol ):nFooterType := AGGR_SUM next oBrw:bLDblClick ...
by Otto
Fri Jul 19, 2024 7:16 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Need Help guide for my program.
Replies: 38
Views: 2346

Re: Ayuda con DLL

... ImpVta[Q]:=0 DtoVta[Q]:=0 VolVta[Q]:=0 PPUVta[Q]:=0 NEXT USE CONFICEM NEW DATABASE oDbf oDbf:bEoF=nil oDbf:bBoF=nil oDbf:GoBottom() Reg:=oDbf:RecNo() IF Reg>1 L:=(Reg+1) ELSE L:=1 ENDIF IF Reg<128 FOR Q=L TO 128 oDbf:Append() oDbf:Save() oDbf:Unlock() NEXT ENDIF DBCLOSEALL() USE VENTACEM ...
by Jorge Jaurena
Tue Jun 04, 2024 2:18 pm
 
Forum: FiveWin para Harbour/xHarbour
Topic: Ayuda con DLL
Replies: 8
Views: 567

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 ...
by nageswaragunupudi
Fri Feb 02, 2024 12:55 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: RAO advice on using Mysql
Replies: 12
Views: 1934

Re: copy a row of xbrowse

... change acopy[1] with new codsep MENUITEM "Paste" WHEN acopy!=NIL ACTION ( ; oBrw:Lock(), ; aCopy[ 1 ] := codsep ,; aCopy[ 8 ] := 0 ,; //recno aadd( oBrw:aArrayData, aCopy ),; oBrw:Unlock( .t. ), ; acopy:=NIL ,; oBrw:RefreshCurrent(), oBrw:SetFocus() ) ENDMENU but when I modify it the ...
by Silvio.Falconi
Tue Dec 05, 2023 1:14 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: copy a row of xbrowse
Replies: 36
Views: 7666

Re: To Nages: Record deleted but make error also

... of the corresponding fields of the DBF. I actually don't know why when I delete one it assigns a number in position 32, where I added the "recno" field as it is done on yunus.prg If I add and delete, a number is not inserted So we arrived at this conclusion which seems to work AEval( ...
by Silvio.Falconi
Wed Nov 22, 2023 6:15 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages: Record deleted but make error also RESOLVED
Replies: 3
Views: 401

To Nages: Record deleted but make error also RESOLVED

... 1624 )   Called from: TEST.PRG => TESTDEL( 131 )   Called from: TEST.PRG => MAIN( 26 ) TO save a xbrowse ( with array with 31 record + "recno()") I made Check if there are deleted records      if ! Empty( oBrowse:aDeleted )             AEval( oBrowse:aDeleted, { ...
by Silvio.Falconi
Wed Nov 22, 2023 9:34 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: To Nages: Record deleted but make error also RESOLVED
Replies: 3
Views: 401

Re: Problem with oBrowse:aDeleted

... re-save on archive There's probably something I don't understand I have two dbf Report.dbf (oDbf) Formati.dbf ( oDbfMod) have 30 fields +1 for recno() at first for editing I take a record on Report.dbf oRecord := oDbf:record() create am array from another archive  aDataForm := oDbfMod:DbfToArray( ...
by Silvio.Falconi
Tue Nov 21, 2023 9:04 am
 
Forum: FiveWin for Harbour/xHarbour
Topic: Problem with oBrowse:aDeleted
Replies: 2
Views: 343

Re: 1st FWH + [x]Harbour 2017 international conference

... RDDs =========== DBF DBFFPT DBFBLOB DBFCDX DBFNTX DataBases in use ================ 1: => EMP RddName: DBFNTX ============================== RecNo RecCount BOF EOF 1 1 .F. .F. Indexes in use TagName Relations in use Classes in use: =============== 1 ERROR 2 HBCLASS 3 HBOBJECT 4 TFONT 5 WIN_OLEAUTO ...
by sirotoca
Wed Nov 15, 2023 9:37 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: 1st FWH + [x]Harbour 2017 international conference
Replies: 68
Views: 286178

Re: Xbrowse : oBrw:ToArray (How to do it)

... RDDs =========== DBF DBFFPT DBFBLOB DBFCDX DBFNTX DataBases in use ================ 1: => EMP RddName: DBFNTX ============================== RecNo RecCount BOF EOF 1 1 .F. .F. Indexes in use TagName Relations in use Classes in use: =============== 1 ERROR 2 HBCLASS 3 HBOBJECT 4 TFONT 5 WIN_OLEAUTO ...
by sirotoca
Wed Nov 15, 2023 8:40 pm
 
Forum: FiveWin for Harbour/xHarbour
Topic: Xbrowse : oBrw:ToArray (How to do it)
Replies: 13
Views: 1639
Next

Return to advanced search