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 » 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 Go to previous messageGo to previous message
mrjt is currently offline  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

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Missing GridCtrl?
Next Topic: desire: ArrayCtrl and GridCtrl: Find in the row
Goto Forum:
  


Current Time: Mon Jun 23 12:13:45 CEST 2025

Total time taken to generate the page: 0.04223 seconds