c# - The use of CommandLineArgs in visual studio -


this question has answer here:

so im trying use commandlineargs.count , commandlineargs.toarray if searched on internet , use my.application.commandlineargs not work me.

this error im getting

error 1 name 'my' not exist in current context c:\users\nighel\documents\visual studio 2013\projects\sof_script\sof_script\gui.cs 119 17 sof_script

        if (my.application.commandlineargs.count > 0)         {             string[] strarray = my.application.commandlineargs.toarray<string>();             s = strarray[0];             if ((strarray.length == 3) | (strarray.length == 4))             {             }         } 

use environment.getcommandlineargs():

returns string array containing command-line arguments current process.

they available parameters in entry point of application, static void main(string[] args).


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -