FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Memo edit buffer ?
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Memo edit buffer ?
Posted: Fri Jul 30, 2010 09:34 PM

Here is another interesting behavior with tMultiget ( Memo edit ). When creating a new REDEFINE GET .... MEMO, there is a buffer essentially the size of the first line of the memo field. You can test this by clicking the mouse to place the cursor in the first line, and then hit End and Home buttons to view the existing space.

I have a client complaining that this space is then saved to a Memo field in a record, and then cause problems with printouts.

Has anyone else noticed this ?

I'm also curious about the behavior of a memo field. When there is no data, and I click on the memo field, the cursor will locate anywhere on the line where I click it. It would be better, I think, if a mouse click in the edit box ( GET ... MEMO ) would jump to the first space in the field like it would in a normal GET. Now we would have to hit the Home button to reposition the cursor. Its not a problem for me, but my clients are not pleased.

Any thoughts or input on this behavior ?

Thanks.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 9020
Joined: Thu Oct 06, 2005 08:17 PM
Re: Memo edit buffer ?
Posted: Sat Jul 31, 2010 08:29 AM

Just AllTrim() the memo variable before editing it.

EMG

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Memo edit buffer ?
Posted: Tue Aug 03, 2010 04:09 PM

I will have to play with that but right now I'm working from the data object which creates the value in a buffer so its not so easy.

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 4840
Joined: Fri Nov 18, 2005 04:52 PM
Re: Memo edit buffer ?
Posted: Tue Aug 03, 2010 04:23 PM
Tim,

>I will have to play with that but right now I'm working from the data object which creates the value in a buffer so its not so easy.

It is easy.

Code (fw): Select all Collapse
class TCustomer from TData
   method blank()
endclass

method blank()
   super:blank()
   ::notes := rtrim( ::notes )
return nil

Regards,
James
FWH 18.05/xHarbour 1.2.3/BCC7/Windows 10

Continue the discussion