FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour "ADODB.RecordSet" active in XBROWSE ?
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
"ADODB.RecordSet" active in XBROWSE ?
Posted: Wed Jun 21, 2023 04:05 AM
hi,

i do use DBF and "ADODB.RecordSet" with XBROWSE
now i can call some Function but they are not the same for DBF and "ADODB.RecordSet"

so i need to "detect" which ist running ... how :?:
greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Wed Jun 21, 2023 04:50 AM
so i need to "detect" which ist running ... how :?:
Code (fw): Select all Collapse
if oBrw:nDataType == DATATYPE_RDD
   // DBF
elseif oBrw:nDataType == DATATYPE_ADO
  // ADO
else
///
endif
Please see \include\xbrowse.ch for the DATATYPE_??? defines.

Another way:
Code (fw): Select all Collapse
if !Empty( oBrw:oRs )
   // ADO
elseif !Empty( oBrw:cAlias )
   // DBF
else
////
endif
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Wed Jun 21, 2023 04:51 AM
i can call some Function but they are not the same for DBF and "ADODB.RecordSet"
I would be glad if you can give some examples.
Let us see if xbrowse can help
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Sat Jun 24, 2023 04:04 AM

hi,

i´m still "play" with XBROWSE, now using ADO for EXCEL too

i use sample FiveDBU.PRG and modify all Parts which i use for "Darkmode"

i have now 2 x XBROWSE : for DBF or EXCEL (ADO)

like FiveDBU i want to "reduce" it to 1 x XBROWSE

but my Buttonbar are different ... it is like (Original) DBU

that´s why i want to "detect" if DBF or ADO is "active"

greeting,

Jimmy
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Sat Jun 24, 2023 02:13 PM
For information:
To set dark theme for xbrowse, create xbrowse normally and then
Code (fw): Select all Collapse
oBrw:SetDarkTheme()
Regards



G. N. Rao.

Hyderabad, India
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Sat Jun 24, 2023 10:48 PM
hi,
nageswaragunupudi wrote:To set dark theme for xbrowse, create xbrowse normally and then
Code (fw): Select all Collapse
oBrw:SetDarkTheme()
thx for Information.

but it is not only XBROWSE where i want to have "Darkmode", it are all DIALOG / WINDOW and CONTROLs
greeting,

Jimmy
Posts: 8515
Joined: Tue Dec 20, 2005 07:36 PM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Sun Jun 25, 2023 02:23 PM

Jimmy, always post a small example.

Regards, saludos.

João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: "ADODB.RecordSet" active in XBROWSE ?
Posted: Sun Jun 25, 2023 08:15 PM
hi,
karinha wrote:always post a small example.
it was "just" a Question "IF active" so i have no Sample for it (yet)

i have release Sample of "working" ADO with EXCEL but as i want to use 1 x XBROWSE "only" ( for DBF or ADO ) i need to know which "is active"
greeting,

Jimmy

Continue the discussion