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  |
Zbych
Messages: 327 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?
|
|
|
Goto Forum:
Current Time: Wed Apr 30 09:14:35 CEST 2025
Total time taken to generate the page: 0.00493 seconds
|