08-10-2024, 03:41 PM
(08-10-2024, 03:19 PM)bplus Wrote: In the above sample code, why not Select Case... End Select or If... ElseIf... Else... End If and avoid false loops and all those If.. End If conditions? no jumping needed with goto's, find the case that works then move on.
Because you're not checking against one single case. Make a select case to check for:
LEFT$(user$,5) = "Steve"
LEFT$(user$,4) = "Pete"
LEFT$(user$,2) = "Jo"
SELECT CASE... what?
And the problem with IF.. ELSEIF... is that I just personally don't use them a lot. They probably would work just fine, but they're just not my usual style.