FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour TxBrowse - Edit
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: TxBrowse - Edit
Posted: Wed Mar 25, 2009 07:27 AM

>
when exiting the last cell with the TAB key I receive:
MsgStop( "::bPastEof not defined","Fivewin: Class TXBrowse" )
I'm not willing to append data to the array. Could you please remove that message too ? (BTW, it's just something for the programmer, not the end user)
>

I should say that this change came as a bolt from blue. Existing code broke. All our sofrtware packages working for years started giving errors. How difficult it is to wade through hundreds of program modules and keep adding oBrw:lAutoAppend := .f. wherever fastedit was used?

I tried my best and finally I had to change my xbrowse copy and recompile.

Just sharing my experience consequent on the new feature.

Regards



G. N. Rao.

Hyderabad, India
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: TxBrowse - Edit
Posted: Wed Mar 25, 2009 02:41 PM

It seems that lAutoAppend should default to .f. to prevent breaking existing code. Antonio?

Regards,
James

FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
Re: TxBrowse - Edit
Posted: Wed Mar 25, 2009 02:53 PM
James,
James Bott wrote:It seems that lAutoAppend should default to .f. to prevent breaking existing code. Antonio?

I agree, even though looks like the class returns Nil after showing the message, so, perhaps just removing it would be sufficient. BTW, if I'm writing a new program and the browse doesn't append data, I probably already know I still have to write that codeblock, even without the message (and without lAutoAppend=.t.)
Hi,
Davide
Posts: 190
Joined: Tue Mar 14, 2006 01:59 AM
Re: TxBrowse - Edit
Posted: Sat Mar 28, 2009 03:12 PM
Daniel,
Daniel Garcia-Gil wrote:do you test my change?

they works fine in FWH 9.03

Thank you !
Davide
Posts: 41
Joined: Thu Dec 22, 2005 07:39 AM
Re: TxBrowse - Edit
Posted: Thu Apr 09, 2009 05:41 AM

Hi!
I have a question about xbrowse edit:

  • In autoedit, when user is starting to edit the cell (by pressing Enter or mouse clicking), all cells value is marking. Is it possible not mark the value, but set cursor position on first character of oGet. And also on clicking any key (when lFastEdit:=.t.) to replace only first simbol of oGet value?

  • After editing the last cell in the row, I want to set focus on another control in my window. I try
    oBrw:aCols[ 10 ]:bOnPostEdit := {|o, v, n| iif( n != VK_ESCAPE, (..., mget[25]:Setfocus() ),nil ) }
    but it doesn't work :(

Sorry if I missed something, but I didn't find it in samples and in xbrowse source...

Best regards!

Sergey (Loach) Abelev

fwh 9.04/xHarbour 1.2.1 (Rev. 6406)/Bcc55

Continue the discussion