diff options
| author | EverythingWindows <[email protected]> | 2022-12-04 18:46:53 +0700 |
|---|---|---|
| committer | EverythingWindows <[email protected]> | 2022-12-04 18:46:53 +0700 |
| commit | 2cb19f4dd09ab07893b331bf93728368ae0c3f00 (patch) | |
| tree | 887620644090347b36eee6c649289955aa03b7af /ShiftOS-TheRevival/TerminalApplications/External | |
| parent | 0e6eb6e76f8227b8055f5ea032f9582dcacee5f5 (diff) | |
| download | shiftos-therevival-old-2cb19f4dd09ab07893b331bf93728368ae0c3f00.tar.gz shiftos-therevival-old-2cb19f4dd09ab07893b331bf93728368ae0c3f00.tar.bz2 shiftos-therevival-old-2cb19f4dd09ab07893b331bf93728368ae0c3f00.zip | |
little work on the next window manager
Diffstat (limited to 'ShiftOS-TheRevival/TerminalApplications/External')
| -rw-r--r-- | ShiftOS-TheRevival/TerminalApplications/External/MathQuiz/App_MathQuiz.vb | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/ShiftOS-TheRevival/TerminalApplications/External/MathQuiz/App_MathQuiz.vb b/ShiftOS-TheRevival/TerminalApplications/External/MathQuiz/App_MathQuiz.vb index 58ab882..a0e8523 100644 --- a/ShiftOS-TheRevival/TerminalApplications/External/MathQuiz/App_MathQuiz.vb +++ b/ShiftOS-TheRevival/TerminalApplications/External/MathQuiz/App_MathQuiz.vb @@ -50,14 +50,18 @@ End Sub Public Sub MQ_CheckAnswer() - Dim TheAnswer As Integer = command - If TheAnswer = MQ_ShouldResult Then - NewLine("You got the right answer! You got " & MQ_ShouldResult & " Codepoint(s)") - ChangeCP(True, MQ_ShouldResult) - MQ_GiveQuestion() - Else - NewLine("You got the wrong answer! Try again") - MQ_GiveQuestion() - End If + Try + Dim TheAnswer As Integer = command + If TheAnswer = MQ_ShouldResult Then + NewLine("You got the right answer! You got " & MQ_ShouldResult & " Codepoint(s)") + ChangeCP(True, MQ_ShouldResult) + MQ_GiveQuestion() + Else + NewLine("You got the wrong answer! Try again") + MQ_GiveQuestion() + End If + Catch ex As Exception + NewLine("Invalid number or command") + End Try End Sub End Module |
