oRs:EditBaseRecord

oRs:EditBaseRecord

Postby Horizon » Sat Aug 18, 2018 3:34 pm

Hi Mr. Rao,

I have a similiar function in my program using DBF files. I have searched the "EditBaseRecord" function but I can't found in source of fwh directory. I think it is one of the hidden functions.

Can you please share part of how to call "EditBaseRecord" with parameters. in order to change my function at present?

Thanks.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1301
Joined: Fri May 23, 2008 1:33 pm

Re: oRs:EditBaseRecord

Postby vilian » Sun Aug 19, 2018 2:09 pm

May be this can help you:

oRs:EditBaseRecord(NIL,.T.,{|oRec| MyFunc(oRec)}, oLbx)
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 960
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: oRs:EditBaseRecord

Postby Horizon » Sun Aug 19, 2018 2:30 pm

vilian wrote:May be this can help you:

oRs:EditBaseRecord(NIL,.T.,{|oRec| MyFunc(oRec)}, oLbx)


How Can I create oRec? (I don't use editbaserecord, I want to convert my function) Is it oRs?

Thanks,
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1301
Joined: Fri May 23, 2008 1:33 pm

Re: oRs:EditBaseRecord

Postby vilian » Mon Aug 20, 2018 2:16 am

Hi,
oRs is a rowset object, that you can create doing something like this:

oRs := oBD:Query("SELECT * FROM customers")

I'm using editbaserecord, oRec AND oRs with FWHMYSQL. oBD IS a conecction WIth a MySql Server.
Sds,
Vilian F. Arraes
vilian@vfatec.com.br
Belém-Pa-Brazil
User avatar
vilian
 
Posts: 960
Joined: Wed Nov 09, 2005 2:17 am
Location: Brazil

Re: oRs:EditBaseRecord

Postby Horizon » Mon Aug 20, 2018 7:11 pm

Hi Villian,

I have finally modified my code to use EditBaseRecord method. It works good. I can add, update or delete records.

Thank you very much.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1301
Joined: Fri May 23, 2008 1:33 pm


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], Jimmy and 86 guests