FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour oRs:EditBaseRecord
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
oRs:EditBaseRecord
Posted: Sat Aug 18, 2018 03: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.06
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: oRs:EditBaseRecord
Posted: Sun Aug 19, 2018 02: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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: oRs:EditBaseRecord
Posted: Sun Aug 19, 2018 02: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.06
Posts: 1067
Joined: Wed Nov 09, 2005 02:17 AM
Re: oRs:EditBaseRecord
Posted: Mon Aug 20, 2018 02: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
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: oRs:EditBaseRecord
Posted: Mon Aug 20, 2018 07: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.06

Continue the discussion