I don't make my living at this.
What's wrong with the following code? Hint: It took a bit to find where the program was getting stuck. Then it took a bit to find where it was still getting stuck. On the plus side, IDEs are wonderful.
While (inFileLines.Length < index )
If (InStr(inFileLines(index), "kickstart") <> 0) Then
Return"Cisco"
'check for a brocade switch
ElseIf (InStr(inFileLines(index), "Fabric OS") <> 0) Then
Return"Brocade"
End If
End While
What's wrong with the following code? Hint: It took a bit to find where the program was getting stuck. Then it took a bit to find where it was still getting stuck. On the plus side, IDEs are wonderful.
While (inFileLines.Length < index )
If (InStr(inFileLines(index), "kickstart") <> 0) Then
Return"Cisco"
'check for a brocade switch
ElseIf (InStr(inFileLines(index), "Fabric OS") <> 0) Then
Return"Brocade"
End If
End While
Comment