Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Select Case idea...
#3
Possible? It works with just a little more syntax!
Code: (Select All)
_Title "test Select Case"
Input "Enter y for yes, n for no, c for cancel"; test$
Select Case test$
    Case Is = "y": Print "you chose yes."
    Case Is = "n": Print "you chose no."
    Case Is = "c": Print "you chose cancel."
    Case Else: Print "you chose something besides y, n, c."
End Select

Oh this is about Instr, not just a string?

"I personally think you'd confuse the crap out of people with the above."
Aye!
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
Select Case idea... - by Unseen Machine - 08-16-2025, 05:04 AM
RE: Select Case idea... - by SMcNeill - 08-16-2025, 05:42 AM
RE: Select Case idea... - by bplus - 08-16-2025, 07:11 AM
RE: Select Case idea... - by Unseen Machine - 08-16-2025, 07:38 AM
RE: Select Case idea... - by bplus - 08-16-2025, 12:57 PM
RE: Select Case idea... - by Gets - 08-17-2025, 11:52 PM
RE: Select Case idea... - by Kernelpanic - 08-28-2025, 04:03 PM
RE: Select Case idea... - by Pete - 08-28-2025, 07:54 PM
RE: Select Case idea... - by Kernelpanic - 08-29-2025, 06:12 PM
RE: Select Case idea... - by Unseen Machine - 08-30-2025, 12:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Just in case anyone doesn't fully appreciate this forum... Pete 8 878 09-06-2025, 06:37 PM
Last Post: SMcNeill
  Got an idea will it work ? doppler 7 1,203 05-27-2025, 11:20 PM
Last Post: Pete
  Using _Andalso with Select Case Dimster 3 659 05-22-2025, 12:43 PM
Last Post: Dimster
  Pete's Dumb Idea of the Day! Pete 18 3,060 10-23-2024, 10:29 PM
Last Post: Pete
  Idea for two new commands TerryRitchie 9 1,764 04-06-2024, 04:02 AM
Last Post: Pete

Forum Jump:


Users browsing this thread: 1 Guest(s)