Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Hey guys, riddle me this...
#9
(12-28-2024, 06:52 PM)Kernelpanic Wrote:
(12-27-2024, 07:20 PM)Pete Wrote:
Code: (Select All)
Print "Why, for example, is this undefined sub call allowed in an 'End' statement?"
Print "End 123, End a = 1, etc. are also allowed if you want to check into that, too."
End MenuOpen ' Program will terminate here.
System

Just a curiosity.

Pete
I don't find it strange, but rather logical. At the "End" the program ends and everything after that is ignored.
Manual: End terminated the program and closed all open Files.

Code: (Select All)

Print "Why, for example, is this undefined sub call allowed in an 'End' statement?"
Print "End 123, End a = 1, etc. are also allowed if you want to check into that, too."
End MenuOpen ' Program will terminate here.
Print "Ende!"
Sleep 2
System

PS: How do one get to 123?

Code: (Select All)

returncode = Shell("notepad.exe")
Print returncode

See Steve's example for foo.exe. Foo.exe was made from foo.bas and End 123 was in foo.bas. You can't put End 123 in notepad.exe unless you can figure out a way to hack the exe code to alter it.

Pete
Reply


Messages In This Thread
Hey guys, riddle me this... - by Pete - 12-27-2024, 07:20 PM
RE: Hey guys, riddle me this... - by DSMan195276 - 12-27-2024, 07:26 PM
RE: Hey guys, riddle me this... - by SMcNeill - 12-27-2024, 07:28 PM
RE: Hey guys, riddle me this... - by Pete - 12-27-2024, 08:47 PM
RE: Hey guys, riddle me this... - by Pete - 12-27-2024, 09:18 PM
RE: Hey guys, riddle me this... - by Pete - 12-28-2024, 05:41 AM
RE: Hey guys, riddle me this... - by Kernelpanic - 12-28-2024, 06:52 PM
RE: Hey guys, riddle me this... - by Pete - 01-01-2025, 02:23 AM



Users browsing this thread: 2 Guest(s)