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 » desire: ArrayCtrl and GridCtrl: Find in the row
Re: desire: ArrayCtrl and GridCtrl: Find in the row [message #11992 is a reply to message #11989] Sat, 06 October 2007 23:43 Go to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
Sorry, my mistake. Have not noticed the "row".

Anyway, it should be 4 lines function, something like:

int FindInRow(const ArrayCtrl& a, int ii, const Value& v)
{
   for(int i = 0; i < a.GetIndexCount(); i++)
       if(a.Get(ii, i) == v)
            return i;
   return -1;
}


[Updated on: Sat, 06 October 2007 23:44]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: AttrText() and content of the cell
Next Topic: getting and selecting cells in gridctrl
Goto Forum:
  


Current Time: Mon Jun 23 15:52:19 CEST 2025

Total time taken to generate the page: 0.02990 seconds