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 » Community » Newbie corner » ArrayMap<String,TabCtrl::Item> - check if String exists..
ArrayMap<String,TabCtrl::Item> - check if String exists.. [message #34354] Fri, 18 November 2011 11:07 Go to previous message
Wolfgang is currently offline  Wolfgang
Messages: 146
Registered: November 2011
Location: Germany
Experienced Member
Hello,

me again!

I try to create an ArrayMap<String,TabCtrl::Item> and "use" it.

Header file - definition
ArrayMap<String,TabCtrl::Item> tabNames;


IN main.cpp
--- String tabName;
--- TabCtrl tab;
tabNames.Add("first",tab.Add(loginLayout.SizePos(), t_("Login")));


This part "works" (gives no error) but HOW to check if an entry for "first" exists in tabNames?
I already tried tabNames.Find("first") but this returns false even if "first" exists in tabNames.
if (tabNames.Find("first")) PromptOK("OK");


You understand what I mean?

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: New and GUI Problem with TabCtrl
Next Topic: What Type to give a Layout as parameter?
Goto Forum:
  


Current Time: Sun May 05 16:11:08 CEST 2024

Total time taken to generate the page: 0.41582 seconds