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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Aloha from Maui guys. Cobalt 18 3,014 01-20-2025, 07:33 PM
Last Post: Pete
  What do you guys like to use for mouse mapping? Pete 32 4,461 01-07-2025, 03:35 PM
Last Post: OldMoses
  SUBS or GOSUB; for library projects, which do you guys prefer? Pete 9 2,038 08-29-2022, 08:12 PM
Last Post: Kernelpanic

Forum Jump:


Users browsing this thread: