none
Running or calling another Small Basic Program RRS feed

  • Question

  • Sorry if this is a very basic question as it is very early days in my use of Microsoft Small Basic.

    But... is it possible to run another Small Basic program immediately after one finsihes.

    Ideally I want to create a small menu and get the user to choose 'Program 1 or Program 2' then run the program according to their choice.

    I am not looking to return to the orginal program and I dont need to carry any values through to the next program either.

    (I am curious if you can return to the original one but I guess I could simply run it again if the option was feasible)

    Any help is really appreciated.

    Dave

    Thursday, December 4, 2014 9:45 AM

Answers

  • You sure can!

    You need to get the LitDev extention. Then you can do it like this:

    LDProcess.Start("Full path of the .exe here","Arguments here if you want to pass any")

    Also, to get the arguments sent to the program, use: 

    Program.GetArgument(1)


    It is written: "'As surely as I live,' says the Lord, 'every knee will bow before me; every tongue will acknowledge God.'" Romans 14:11

    Thursday, December 4, 2014 3:50 PM
    Answerer