Parameters

How do I make a VB Program to use Parameters

e.g

I run test.exe -test1

It runs test1

I run test.exe -test2

It runs test2

etc.



Answer this question

Parameters

  • SQLDBALIZ

    It doesn't matter, I found out how!

    I made a function that can do it

    Function ParameterTest()

    Dim cmd As String = Microsoft.VisualBasic.Command

    Select Case cmd.ToLower

    Case String.Empty

    MsgBox("Empty String")

    Case test1

    <Code in here>

    Case test2

    <Code in here>

    Case Else

    MessageBox.Show(cmd)

    End Select

    Return 0

    End Function


  • Parameters