FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Question about performance RowSet
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
Re: Question about performance RowSet
Posted: Thu Mar 21, 2024 02:07 PM
nageswaragunupudi wrote:
Run time error:
Which version of FWH did you test with please?
Mr Rao,
Fivewin 23.10 xHarbour 123, BCC 77.
FWH / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Question about performance RowSet
Posted: Thu Mar 21, 2024 10:39 PM
Thank you very much for pointing out this error.
This example works perfectly fine with Harbour but fails with xHarbour with this run-time error.
This bug is due to my ignoring the difference in the behavior between Harbour and xHarbour of a function PValue().
We regret the inconvenience.

You can fix this problem by making a small correction in TArrayData class in \fwh\source\classes\tarrdata.prg

Please locate the line:
Code (fw): Select all Collapse
METHOD New( aData, aStruct ) CLASS TArrayData
Please change it as:
Code (fw): Select all Collapse
METHOD New( aData, aStruct, p3 ) CLASS TArrayData
With this fix, the above examples works perfectly with xHarbour also.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Question about performance RowSet
Posted: Thu Mar 21, 2024 10:45 PM
In the next release we will have:
Code (fw): Select all Collapse
oRec := oCn:Record( cTable )
oRec:Edit()
for editing and saving a blank record.
Code (fw): Select all Collapse
oRec := oCn:Record( cTable, cWhere )
oRec:Edit()
for editing a single existing record and saving the modifications.

oCn:Record(...) creates a FWMariaRecord class object.
This class is derived from TDataRow class and can be used/edited and saved like any normal TDataRow object.
Regards



G. N. Rao.

Hyderabad, India
Posts: 114
Joined: Fri Jul 21, 2006 07:15 PM
Re: Question about performance RowSet
Posted: Fri Mar 22, 2024 12:25 PM
nageswaragunupudi wrote:Thank you very much for pointing out this error.
This example works perfectly fine with Harbour but fails with xHarbour with this run-time error.
This bug is due to my ignoring the difference in the behavior between Harbour and xHarbour of a function PValue().
We regret the inconvenience.

You can fix this problem by making a small correction in TArrayData class in \fwh\source\classes\tarrdata.prg

Please locate the line:
Code (fw): Select all Collapse
METHOD New( aData, aStruct ) CLASS TArrayData
Please change it as:
Code (fw): Select all Collapse
METHOD New( aData, aStruct, p3 ) CLASS TArrayData
With this fix, the above examples works perfectly with xHarbour also.
Mr Rao, works fine, thank you.
FWH / xHarbour / BCC / MySql

Visual Studio / Harbour / DotNet Maui / C#
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: Question about performance RowSet
Posted: Fri Mar 22, 2024 04:09 PM

Thanks for the confirmation.

Fixed properly in the next version

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion