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 » How do I 'check' a Switch control
Re: How do I 'check' a Switch control [message #36217 is a reply to message #36216] Sat, 12 May 2012 19:17 Go to previous messageGo to previous message
jerson is currently offline  jerson
Messages: 202
Registered: June 2010
Location: Bombay, India
Experienced Member

You can check the selected case in the switch by reading its value to an integer.

Switch sw;
int swVal;

swVal = sw;

or select a particular case in code by doing this

swVal = 1; // select item 1 of the switch
sw = swVal;

 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: time measurement :: RTIMING, TimeStop, GetTickCount
Next Topic: Storing VectorMap
Goto Forum:
  


Current Time: Mon May 06 13:50:06 CEST 2024

Total time taken to generate the page: 0.01961 seconds