Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Expanding SELECT CASE
#3
Yeh, I wasn't very clear. Let's say you're using a boatload of true/false flags to turn on and off various events, timers and subs (as I am). Instead of separately naming _byte variables for each flag (FLIP_ON_SHIP = TRUE,  START_GAME_TIMER = TRUE), let's say for organizing purposes you stick them all in UDTs (like I did), like 

Type FLAG

FLIP_ON_SHIP As _BYTE
START_GAME_TIMER As _BYTE
ETC.

End Type

It would be nice now to be able to use a SELECT EVERYCASE structure to tick through the booleans (in an array or UDT) and act on them instead of using a big bunch of IF statements. Or is there simply a better way to organize event flags for complicated programs?
Reply


Messages In This Thread
Expanding SELECT CASE - by NakedApe - 10-20-2024, 06:08 PM
RE: Expanding SELECT CASE - by SMcNeill - 10-20-2024, 06:40 PM
RE: Expanding SELECT CASE - by NakedApe - 10-20-2024, 08:22 PM
RE: Expanding SELECT CASE - by SpriggsySpriggs - 10-24-2024, 11:43 AM
RE: Expanding SELECT CASE - by NakedApe - 10-24-2024, 07:50 PM
RE: Expanding SELECT CASE - by NakedApe - 10-24-2024, 08:23 PM



Users browsing this thread: 1 Guest(s)