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 » Problem using a switch control
Re: Problem using a switch control [message #45605 is a reply to message #45603] Tue, 15 December 2015 10:31 Go to previous messageGo to previous message
Giorgio is currently offline  Giorgio
Messages: 218
Registered: August 2015
Experienced Member
Hello Mirek,
there is something I am missing. I knew that query[DRUM] can give multiple results with the same value, that is expected (to give context: user has to cut a long cable in "chunks", and usually some of those chunks have the same length; the switch control is used to select what chunk the user is currently cutting). What it is not really clear to me, is the "unique" index to be used in each switch element. I supposed that the first element of the .Set method was the one that had to be unique. In fact, in my code the first element is a counter (i) that is incremented each time in the loop: that was what I meant when I wrote that the switch cases have different values. Is there a way to fix my code or I have to think to a different approach?
Thanks,
Gio
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Multiple lines on EditString
Next Topic: Installation Problem in OpenSUSE Tumbleweed
Goto Forum:
  


Current Time: Sun Jun 22 00:09:37 CEST 2025

Total time taken to generate the page: 0.04016 seconds