"ADODB.RecordSet" active in XBROWSE ?

"ADODB.RecordSet" active in XBROWSE ?

Postby Jimmy » Wed Jun 21, 2023 4: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
User avatar
Jimmy
 
Posts: 1585
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby nageswaragunupudi » Wed Jun 21, 2023 4:50 am

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


Code: Select all  Expand view
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: Select all  Expand view
if !Empty( oBrw:oRs )
   // ADO
elseif !Empty( oBrw:cAlias )
   // DBF
else
////
endif
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby nageswaragunupudi » Wed Jun 21, 2023 4: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
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby Jimmy » Sat Jun 24, 2023 4: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
User avatar
Jimmy
 
Posts: 1585
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby nageswaragunupudi » Sat Jun 24, 2023 2:13 pm

For information:
To set dark theme for xbrowse, create xbrowse normally and then
Code: Select all  Expand view
oBrw:SetDarkTheme()
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10248
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby Jimmy » Sat Jun 24, 2023 10:48 pm

hi,
nageswaragunupudi wrote:To set dark theme for xbrowse, create xbrowse normally and then
Code: Select all  Expand view
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
User avatar
Jimmy
 
Posts: 1585
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby karinha » Sun Jun 25, 2023 2:23 pm

Jimmy, always post a small example.

Regards, saludos.
João Santos - São Paulo - Brasil - Phone: +55(11)95150-7341
User avatar
karinha
 
Posts: 7214
Joined: Tue Dec 20, 2005 7:36 pm
Location: São Paulo - Brasil

Re: "ADODB.RecordSet" active in XBROWSE ?

Postby Jimmy » Sun Jun 25, 2023 8: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
User avatar
Jimmy
 
Posts: 1585
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 93 guests