René,
Case will definitely be faster. A good alternative would be:
add 1 to vgCompteurFlux[vpNumeroduFlux]
I wouldn't use special characters such as é in variable names. I very
rarely have to make such choices, because I have a different syle of
programming.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
Subscribe to the Economy-x-Talk newsletter at http://qurl.tk/cj
Download Clipboard Link http://clipboardlink.economy-x-talk.com and
share the clipboard of your computer over the local network.
On 20 jun 2010, at 12:38, René Micout wrote:
Thank you Mark,
In my project I use lot of "do" command...
For you, is that (the number of flux (flows) is 5) :
put "add 1 to vgCompteurFlux"& vpNuméroduFlux into vxA ; do vxA
faster or slower than :
switch vpNuméroduFlux
case 1 ; add 1 to vgCompteurFlux1 ; break
case 2 ; add 1 to vgCompteurFlux2 ; break
case 3 ; add 1 to vgCompteurFlux3 ; break
case 4 ; add 1 to vgCompteurFlux4 ; break
case 5 ; add 1 to vgCompteurFlux5 ; break..
end switch
You can answer to me : make a test ;-)... But have you ever had this
choice to make ?
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution