FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour to Mr. Rao
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
to Mr. Rao
Posted: Thu Dec 22, 2011 06:13 PM
Mr. Nao,

I have two questions about xBrowse. I would appreciate your help please.

Regarding viewtopic.php?f=3&t=23113

http://imageshack.us/photo/my-images/19 ... great.png/

Is it possible to exclude spaces, as the picture?.



Also, in
Code (fw): Select all Collapse
 oBrw:aCols[ 1 ]:nEditType   := EDIT_GET_BUTTON


Is it possible in the button to indicate a Bmp as BUTTONBMP?.


Thanks a lot.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 1096
Joined: Fri Oct 28, 2005 02:27 AM
Re: to Mr. Nao
Posted: Fri Dec 23, 2011 06:53 AM
Don't you mean Mr Rao? :-)
FWH 11.08/FWH 19.12

BCC5.82/BCC7.3

xHarbour/Harbour
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: to Mr. Nao
Posted: Fri Dec 23, 2011 01:43 PM
Is it possible to exclude spaces, as the picture?.




If this is a character field, use Trim(<fieldname>) while defining xbrowse.
Example:

Code (fw): Select all Collapse
oBrw:aCols[n]:bEditValue := { |x| If( x == nil, Trim(<fieldname>), ( <fieldname> := x, Trim(x) ) }

I do not know why you want this behavior. Users will not be able to enter longer value than the trimmed value shown in the browse.
Regards



G. N. Rao.

Hyderabad, India
Posts: 10733
Joined: Sun Nov 19, 2006 05:22 AM
Re: to Mr. Nao
Posted: Fri Dec 23, 2011 01:47 PM
Is it possible in the button to indicate a Bmp as BUTTONBMP?.

Please use oCol:nBtnBmp for this purpose
Regards



G. N. Rao.

Hyderabad, India
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: to Mr. Nao
Posted: Fri Dec 23, 2011 05:17 PM

Thank you very much.

Also, one last thing.

I do double click to edit a field or just press enter.

To save changes, I should press enter too. Also, is it possible to save changes when clicking in another cell?.

Thanks.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Posts: 2170
Joined: Fri Jul 18, 2008 01:24 AM
Re: to Mr. Nao
Posted: Fri Dec 23, 2011 11:33 PM

Hi, Mr. Nao.
I also am interested in exposing ukservice.
Is it possible save changes on EDIT_GET without pressing ENTER and clicking another cell or the header's column?

Thanks

Francisco J. Alegría P.

Chinandega, Nicaragua.



Fwxh-MySql-TMySql
Posts: 654
Joined: Fri Oct 21, 2005 05:54 AM
Re: to Mr. Nao
Posted: Mon Dec 26, 2011 06:51 AM
Hi Mr.ukservice and Mr.FranciscoA


Don't you mean Mr Rao?


Mr.hua already pointed out that error in addressing Mr.Rao as Mr.Nao.

Inspite of Mr.Hua's pointing, Mr.ukservice did not mind to rectify the error:(
and kept on asking for Mr.Rao's help.

It is very sad that Mr.FranciscoA is also on the same path of Mr.ukservice :-)

Let us respect our Seniors, at least by calling them with their own names.

Mr.ukservice and Mr.FranciscoA

I hope you don't think bad of my comment.

Regards,

- Ramesh Babu P
Posts: 417
Joined: Tue Feb 23, 2010 03:09 PM
Re: to Mr. Rao
Posted: Mon Dec 26, 2011 10:38 AM

Sorry, I thought if was Nao as others call him too.

Sorry again and thanks for your help and interest.

FWH 11.11, Harbour 3.1 and Borland C++ 5.82

Continue the discussion