Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » How to trim leading and trailing spaces in EditString?
How to trim leading and trailing spaces in EditString? [message #23765] Fri, 20 November 2009 10:10 Go to previous message
Zbych is currently offline  Zbych
Messages: 325
Registered: July 2009
Senior Member
Hi,

What is the simplest way to add a trimming of spaces to EditString?
I tried to add a conversion. It works fine, but EditString stopped reacting to NotNull flag.

Here is the code of my converter:
struct TrimConvert : public Convert {
	virtual Value Scan(const Value& text) const {
		return TrimBoth(text.ToString());
    }
}; 


Question is what I am doing wrong?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What is the best way to create a mask in a editfield.
Next Topic: Incorrect position of chars in DocEdit ctrl.
Goto Forum:
  


Current Time: Fri Mar 29 10:03:12 CET 2024

Total time taken to generate the page: 0.01428 seconds