Hi,
ich bin dabei, an meiner Consolen-App etwas zumzubasteln, und möchte, dass mit dem Stastendruck Y/N was gemacht wird, also mit Console.ReadKey...
Leider stell ich fest, das sich das nicht so einfach wie Console.ReadLine behandeln läst.
Habe es so probiert: If Console.ReadKey.Trim.ToLower = "y" then ...
Jedoch kommt eine Fehlermeldung, dass Strung nicht in Bolean konvertiert werden kann...
Sry für meine Frage, wenn sie etwas doof ist, aber weis das nun mal net, und möchte gerne wissen, wie ich das
sonst machen kann?
mfg
gfcwfzkm
ich bin dabei, an meiner Consolen-App etwas zumzubasteln, und möchte, dass mit dem Stastendruck Y/N was gemacht wird, also mit Console.ReadKey...
Leider stell ich fest, das sich das nicht so einfach wie Console.ReadLine behandeln läst.
Habe es so probiert: If Console.ReadKey.Trim.ToLower = "y" then ...
Jedoch kommt eine Fehlermeldung, dass Strung nicht in Bolean konvertiert werden kann...
Sry für meine Frage, wenn sie etwas doof ist, aber weis das nun mal net, und möchte gerne wissen, wie ich das
sonst machen kann?
mfg
gfcwfzkm