Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » AttrText() and content of the cell
Re: AttrText() and content of the cell [message #11948 is a reply to message #11947] |
Wed, 03 October 2007 16:44   |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
The ArrayCtrl is just returning exactly what you put in - an AttrText - but contained in a Value. You just need to convert it back, though this is more slightly more complicated than for Upp 'native' types:
WString GetText(const Value &v)
{
return IsTypeRaw<AttrText>(v) ? ValueTo<AttrText>(v).text : WString();
} James
[Updated on: Wed, 03 October 2007 16:46] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Jun 23 20:38:41 CEST 2025
Total time taken to generate the page: 0.04107 seconds
|