Page 1 of 1

XBROWSE switch Ado / DBF

PostPosted: Tue Jun 07, 2022 10:27 am
by damianodec
Hi
How can I to Switch Ado / DBF insdie Xbrowse
I have oRs Object from Adodb and a MYDBF.DBF file.

oRs and MYDBF.DBF have the same columns (6 columns with the same type column)

before DEFINE DIALOG I have oRs Object and MYDBF.DBF file opened.

DIALOG starts with oRs Adodb Object
Code: Select all  Expand view

DEFINE DIALOG oDlg
..
@63, 10 XBROWSE oBrw RECORDSET oRs

    @ 320,190 BTNBMP oBtn1 SIZE 50,20 OF oDlg ;
    ACTION ( here I have to change oBrw)   
 

Inside Action oBtn1 I have to switch oBrw from oRs to MYDBF.DBF file and vice versa

how can I do it ?

thank you

Re: XBROWSE switch Ado / DBF

PostPosted: Tue Jun 07, 2022 1:05 pm
by nageswaragunupudi
Code: Select all  Expand view
oBrw:ResetData( cAlias, aCols )
//or
oBrw:ResetData( cAlias, .t. ) // for all cols

Works from FWH1803

Re: XBROWSE switch Ado / DBF

PostPosted: Tue Jun 07, 2022 1:15 pm
by damianodec
thank you Mr.Rao
I Have FWH 17.09