I need to pass a counter as an argument to a function within a for each loop in vb.net.
For Each line In inFileContents.Split(arg, StringSplitOptions.None)
Dim objFtpFileLine As New FtpFileLineClass()
outStatusString = Upload_ToDatabase(FileId, LineNumer, line)
The counter will be assigned to the variable LineNumber.
Any help would be nice.