Search found 195 matches: dbgoto

Searched query: dbgoto

by Antonio Linares
Sat Jan 25, 2025 5:21 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Antonio... FiveTouch posts are gone?
Replies: 16
Views: 40727

Re: Antonio... FiveTouch posts are gone?

... 1 TO 5
OrdKeyAdd( "NAMESET" )
SKIP
NEXT

GO TOP
Browse()

// absolute navigation with custom index
OrdSetFocus( "NAMESET" )
FOR i:=1 TO 5
DbGoto( i )
OrdKeyAdd( "NAMESET" )
NEXT

GO TOP
Browse()

USE
RETURN

OrdKeyAdd()
Adds an index key to a custom built index.
Syntax
OrdKeyAdd ...
by JoséQuintas
Thu Jan 23, 2025 2:42 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 10
Views: 24618

Re: xbrowse, dbf and codeblock

... I forgot about this.

This works ok, with full name.



WITH OBJECT xControl
xControl:SetRdd()
xControl:bGoTop := {|| ( xControl:cAlias )->( DbGoTop() ) }
xControl:bGoBottom := {|| ( xControl:cAlias )->( DbGoBottom() ) }
xControl:bSkip := {| n | ( xControl:cAlias )->( DbSkipper( IfNil( n, 1 ...
by JoséQuintas
Thu Jan 23, 2025 2:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 10
Views: 24618

Re: xbrowse, dbf and codeblock

On a first momment anything is wrong.

WITH OBJECT xControl
:SetRdd()
:bGoTop := {|| ( :cAlias )->( DbGoTop() ) }
:bGoBottom := {|| ( :cAlias )->( DbGoBottom() ) }
:bSkip := {| n | ( :cAlias )->( DbSkipper( IfNil( n, 1 ) ) ) }
:bBof := {|| ( :cAlias )->( Bof() ) }
:bEof := {|| ( :cAlias ...
by nageswaragunupudi
Thu Jan 23, 2025 1:25 pm
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 10
Views: 24618

Re: xbrowse, dbf and codeblock

These are the default codeblocks for a normal DBF.

::bGoTop := {|| ( ::cAlias )->( DbGoTop() ) }
::bGoBottom := {|| ( ::cAlias )->( DbGoBottom() ) }
::bSkip := {| n | ( ::cAlias )->( DbSkipper( IfNil( n, 1 ) ) ) }
::bBof := {|| ( ::cAlias )->( Bof() ) }
::bEof := {|| ( ::cAlias )->( Eof ...
by JoséQuintas
Thu Jan 23, 2025 1:49 am
Forum: FiveWin for Harbour/xHarbour
Topic: xbrowse, dbf and codeblock
Replies: 10
Views: 24618

xbrowse, dbf and codeblock

... n | ( nSelect )->( FazBrowseSkip( n ) ) }
//:bBof := { || Bof() }
//:bEof := { || Eof() }
//:bBookMark := { | n | iif( n == nil, RecNo(), DbGoto( n ) ) }
ENDWITH
...
STATIC FUNCTION FazBrowseSkip( nSkip )

LOCAL nSkipped := 0

IF Empty( nSkip )
RETURN 0
ENDIF
IF nSkip > 0
DO WHILE ...
by cnavarro
Wed Jan 22, 2025 5:53 pm
Forum: FiveWin for Harbour/xHarbour
Topic: multi-column popup menu
Replies: 15
Views: 38657

Re: multi-column popup menu

... NAME "Segoe UI Symbol" SIZE 0, -14

DbUseArea( .T., , "Customer.dbf" )
DbUseArea( .T., , "utf8_01.dbf" )
DbUseArea( .T., , "states.dbf" )
//DbGoto( 3 )
DEFINE WINDOW oWnd TITLE "Test Menu From Databases and Arrays: " MENU MenuDatabase() ;
FROM 20, 40 TO 650, 1200 PIXEL

oWnd:bRClicked ...
by Otto
Fri Nov 15, 2024 9:50 am
Forum: FiveWin for Harbour/xHarbour
Topic: cloud or not cloud
Replies: 34
Views: 12708

Re: cloud or not cloud

... FieldName: Returns the name of a field by its 1-based position.
* - FieldPosLast: Returns the 1-based position of the last field.
* - php4dbf_dbGoTop: Moves the record pointer to the first valid record.
* - php4dbf_dbGoTo: Moves the record pointer to a specific record.
* - php4dbf_init ...
by Carles
Mon Oct 23, 2023 4:17 pm
Forum: FiveWin for Harbour/xHarbour
Topic: DBF . Commit
Replies: 39
Views: 9349

Re: DBF . Commit

... record or table is unlocked then just before this
operations RDD writes all local modifications in table and
index files.
2. DBSKIP(0) just like DBGOTO( RECNO() ) writes all local
modifications (if any) and then discards local record
buffer so record has to be read again when any field is
accessed ...
by russimicro
Fri Sep 15, 2023 11:05 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Reason for closing DBF file
Replies: 23
Views: 3643

Re: Reason for closing DBF file

... Time from start: 7 hours 23 mins 28 secs
Error occurred at: 09/14/2023, 15:40:37
Error description: Error DBCMD/2001 Area de trabajo no usada: DBGOTO

Stack Calls
===========
Called from: => DBGOTO( 0 )
Called from: source\classes\xbrowse.prg => (b)TXBROWSE:SETRDD( 4168 )
Called from: source ...
by Cgallegoa
Sun Jun 11, 2023 1:13 am
Forum: FiveWin for Harbour/xHarbour
Topic: Position in ADO Recordset
Replies: 3
Views: 488

Re: Position in ADO Recordset

Jimmy,

Equivalents:
  • Found() --> .not. oRs:Eof()
    RecNo() --> oRs:BookMark
    DbGoTo( n ) --> oRs:BookMark := n
    OrdKeyNo() --> oRs:AbsolutePosition
    OrdKeyGoTo( x ) --> oRs:AbsolutePosition := x
Regards,
by José Camilo
Sun Feb 12, 2023 4:38 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Reitero consulta para actualizar un campo con XBrowse
Replies: 6
Views: 1231

Re: Reitero consulta para actualizar un campo con XBrowse

... new
use ArtFor index ArtFor1, ArtFor2, ArtFor3, ArtFor4, ArtFor5 new
use _ArtFor index _ArtFor1, _ArtFor2 new
zap
select ArtFor
ArtFor->(DbGoTop())
While !ArtFor->(Eof())
select _ArtFor
_ArtFor->(DbAppend())
_ArtFor->Articulo := ArtFor->Articulo
_ArtFor->Detalle := ArtFor->Detalle ...
by José Camilo
Sat Feb 11, 2023 3:18 pm
Forum: FiveWin para Harbour/xHarbour
Topic: Reitero consulta para actualizar un campo con XBrowse
Replies: 6
Views: 1231

Reitero consulta para actualizar un campo con XBrowse

... function RefXBrw(regi)
select _ArtFor
_ArtFor->(DbGoTop())
While !_ArtFor->(Eof())
_ArtFor->Total := _ArtFor->Costo*_ArtFor->Pedir
_ArtFor->(DbSkip())
end
_ArtFor->(DbGoTo(regi))
return NIL ...
by anserkk
Fri Nov 25, 2022 9:46 am
Forum: FiveWin for Harbour/xHarbour
Topic: Newbie Question : XBROWSE
Replies: 17
Views: 3925

Re: Newbie Question : XBROWSE

... now i can "see" my Data but when "move" vitcal Scrollbar it crash : no WorkArea :shock:
Error description: Error DBCMD/2001 Workarea not in use: DBGOTO
As per your first post in the thread you are using a Window. The DBF is getting closed immediately after the ACTIVATE WINDOW and that's the reason ...
by Jimmy
Fri Nov 25, 2022 6:30 am
Forum: FiveWin for Harbour/xHarbour
Topic: Newbie Question : XBROWSE
Replies: 17
Views: 3925

Newbie Question : XBROWSE

... now i can "see" my Data but when "move" vitcal Scrollbar it crash : no WorkArea :shock:
Error description: Error DBCMD/2001 Workarea not in use: DBGOTO

Newbie need some help, who can point me to a "simple" Demo

---

there are a lot of Sample ... but they are not "sort"
when search for XBROWSE ...
by Silvio.Falconi
Sun Apr 17, 2022 10:43 pm
Forum: FiveWin for Harbour/xHarbour
Topic: Help for scrollBar - Resolved -
Replies: 10
Views: 968

Help for scrollBar - Resolved -

... oScrollInizio HORIZONTAL SIZE 400,20 PIXEL OF oDlg ;
RANGE 1,reccount() ;
ON DOWN ( dbSkip(),;
If( EoF(), dbGoBottom(),), Rinfresca(oSay) );
ON UP ( dbSkip( -1 ),Rinfresca(oSay) ) ;
ON THUMBPOS (DBGOTO(oScrollInizio:getpos()) ,;
If( EoF(), dbGoBottom(),), Rinfresca(oSay) ) UPDATE

But not run ok