Page 1 of 1

XBROWSE : BookMark what is it for ?

PostPosted: Sun Apr 16, 2023 5:38 am
by Jimmy
hi,

in c:\fwh\source\classes\xbrowse.prg i found often "BookMark","bBookMark" and "SQLRDD_BookMark"
what are "Bookmark" for ... have no Idea :idea:

can somebody point me to a Sample where "BookMark" are used ... or is it only "internal" of XBROWSE :?:

Re: XBROWSE : BookMark what is it for ?

PostPosted: Sun Apr 16, 2023 10:39 am
by nageswaragunupudi
For DBF, BookMark is RECNO()
For ADO BookMark is BookMark
etc.

oBrw:BookMark := n
is equivalent to ( oBrw:cAlias )-> GOTO( n ) for DBF
and
is equivalent to oBrw:oRs:BookMark := n for ADO

Same way
oBrw:KeyNo is same is OrdKeyNo() for DBF, AbsolutePosition of ADO, etc

XBrowse can handle many types of datasources, which use different methods, functions and datas.

We talk to XBrowse is one language and XBrowse talks to the underlying datasource in its corresponding language.

So, it is possible for use the same program code for different kinds of datasources, without changing even a single character in the source program. DBF,ADO,FWMySql,TMySql,Dolphin,PostGre, etc.