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 » U++ Core » VectorIndex
Re: VectorIndex [message #24161 is a reply to message #24158] Wed, 30 December 2009 11:31 Go to previous messageGo to previous message
dolik.rce is currently offline  dolik.rce
Messages: 1791
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi exdatis,

You can write it without the ugly iterators as
int index_test;
for(index_test = 0; index_test < ls_town->GetCount(); index_test++){
	if((*ls_town)[index_test].getName()=="Pancevo") break;
}
PromptOK(AsString(index_test));

There are probably even better/faster solutions, but those would depend on how TownLs class looks like...

Best regards,
Honza

EDIT:Oups, I missed that ls_town is a pointer Embarassed Corrected now Wink

[Updated on: Wed, 30 December 2009 11:45]

Report message to a moderator

 
Read Message icon9.gif
Read Message
Read Message icon14.gif
Read Message
Read Message
Read Message
Previous Topic: FtpClient use with Progress FIX
Next Topic: ptr
Goto Forum:
  


Current Time: Wed Apr 30 07:54:23 CEST 2025

Total time taken to generate the page: 0.00930 seconds