Select/Case in the event loop from the VD

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
Kale
PureBasic Expert
PureBasic Expert
Posts: 3000
Joined: Fri Apr 25, 2003 6:03 pm
Location: Lincoln, UK
Contact:

Select/Case in the event loop from the VD

Post by Kale »

I just wondered why the Visual Designer always uses if/elseif/endif in the event loop of the program if its generated using 'Include event loop'. Is it possible to add a switch to use select/case instead? Was there a reason for if/elseif/endif and not select/case? Personally i use the VD generate source then convert it all to use select/case. Just preference i guess? Anyway about that switch?... :)
--Kale

Image
Lars
User
User
Posts: 31
Joined: Sat Sep 27, 2003 5:54 pm
Location: Bonn, Germany
Contact:

Post by Lars »

Yeah, great idea. I wondered some times, too, but I got on with it. But it is
a great idea!
Lars
The only problem with troubleshooting is that sometimes the trouble shoots back.
P4 3Ghz, 512MB RAM, Radeon 9600Pro, WinXP Home SP2, PB V4.0
Post Reply