"Program.ArgumentCount" is (a read only object). It causes a compiler error
(Cannot find operation 'ArgumentCount' in 'Program'.)
and therefore no .exe file is created.
How can I get a compiled program so that I can add an argument when executing the program?
'get program argument
TextWindow.WriteLine("")
For i=1 to Program.ArgumentCount()
TextWindow.WriteLine(Program.GetArgument(i))
endfor
' directory
wq=text.GetCharacter(34)
TextWindow.WriteLine("Program.Directory = "+wq+Program.directory+wq)
' delay()
TextWindow.WriteLine("Before: "+Clock.second)
Program.Delay(2000)
TextWindow.WriteLine("Before: "+Clock.second)
TextWindow.Pause()
Program.End()
Copied from "The Developer’s Reference Guide to Small Basic 3: Program Object"