FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Record in Use
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Record in Use
Posted: Thu Jun 12, 2014 01:12 PM

Hi All

I have recently upgrade from FWH11.05 to FWH14.04 and also converted to Harbour but I don't think the problem comes from Harbour.

I use MDI in my apps and the tdatabase class.

I have one window that has a product database and using xbrowse bOnPostEdit I enter the delivered quantity of a product into a cell
(there can be multiple lines of items )- leaving that screen open I open another screen to invoice the product and when I save the invoice
I get a 'record in use' error - all the items in the first screen get processed except the last one I entered data into.

This does not happen with FWH11.05 and xHarbour

Cheers

Colin

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Record in Use
Posted: Thu Jun 12, 2014 03:56 PM

Are you locking the record while it is being edited?

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Re: Record in Use
Posted: Thu Jun 12, 2014 09:28 PM

Hi James
I leave the record locking/unlocking to tDatabase and xBrowse.

Cheers

Colin

Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Record in Use
Posted: Thu Jun 12, 2014 10:10 PM

Colin,

Then I would guess it is due to changes in FWH in the newer version. I doubt that it is Harbour, but you could test this by compiling with the newer version of xHarbour and the newer version of FWH. If you still get the error, then it is due to changes in FWH.

However, either way, I think you will need to fix the problem by changes to your code.

James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Record in Use
Posted: Fri Jun 13, 2014 06:48 AM

Mr Colin

We would like to investigate the problem. We shall be glad if you can post a self contained example which we can compile and test at our end. You may use any DBFs in the samples folder.

Note: By default, xbrowse creates bOnPostEdit codeblocks internally. They work efficiently. It is desirable not to override these default codeblocks with user codeblocks.

Regards



G. N. Rao.

Hyderabad, India
Posts: 310
Joined: Mon Oct 10, 2005 05:10 AM
Re: Record in Use
Posted: Sun Jun 15, 2014 01:22 AM

Mr Rao

Can you give me your email address and I will send a sample - colin@techdata.net.au

Regards

Colin

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Record in Use
Posted: Sun Jun 15, 2014 03:03 PM

Thanks for pointing out the issue.
This is fixed in ver 14.06 to be released soon.

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion