[RESOLVED] [2008] remove element from array
I have this very simple question and for the life of me i can't even google it right.
Code:
Dim params() As String = args
For Each parameter In params
If parameter.StartsWith("-") Then
Options.Add(parameter)
End If
Next
pretty much I am creating a command line program. It will accept arguments so someone can type in
Code:
prog.exe blah blah -t -f -v
All i want it so get the params that start with - and store them in my Options (list of string).
then I want to delete them from the orignal array so I am only left with "blah blah"
Re: [RESOLVED] [2008] remove element from array
I decided that I would get the arguments and store it in a list right away
Code:
Dim _argsList as list (of string)
_argsList = args.ToList
Re: [RESOLVED] [2008] remove element from array