10-20-2024, 08:22 PM
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?
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?