FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour xBrowse: error in SameArrayStruct(..) function
Posts: 858
Joined: Fri Oct 07, 2005 12:00 PM
xBrowse: error in SameArrayStruct(..) function
Posted: Mon Apr 20, 2009 02:40 PM

Hi,
line 9380 "if nLen<=len(aNew)" has to be replaced with "if nLen<=len(aNew[1])" otherwise that function return .f. incorrectly

Best Regards,



Marco Turco

SOFTWARE XP LLP
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse: error in SameArrayStruct(..) function
Posted: Mon Apr 20, 2009 07:20 PM

It was not an error. I think it was intentional. If the new array that is being substituted has more columns than the present array, it does not affect the browse in any way.

Regards



G. N. Rao.

Hyderabad, India
Posts: 782
Joined: Wed Dec 19, 2007 07:50 AM
Re: xBrowse: error in SameArrayStruct(..) function
Posted: Tue Apr 21, 2009 01:48 AM

Hi Marco, Rao:

I agree with Marco, that sentence is comparing number of columns with number of rows.

Regards.

Manuel Mercado

manuelmercado at prodigy dot net dot mx
Posts: 167
Joined: Thu Mar 22, 2007 11:24 AM
Re: xBrowse: error in SameArrayStruct(..) function
Posted: Tue Apr 21, 2009 06:39 AM

Marco ,

See also viewtopic.php?f=3&t=14046#p72232

From FWH 8.12 it should be corrected

Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: xBrowse: error in SameArrayStruct(..) function
Posted: Tue Apr 21, 2009 10:37 AM

Sorry. Yes. You are all right.
Hope this will be fixed in the next version.
Meanwhile we can correct our copies as Mr Marco suggested

Regards



G. N. Rao.

Hyderabad, India

Continue the discussion