'Tis A Good Thing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • crokett
    The Full Monte
    • Jan 2003
    • 10627
    • Mebane, NC, USA.
    • Ryobi BT3000

    'Tis A Good Thing

    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
    Last edited by crokett; 10-06-2007, 08:25 PM.
    David

    The chief cause of failure in this life is giving up what you want most for what you want at the moment.
  • Ed62
    The Full Monte
    • Oct 2006
    • 6021
    • NW Indiana
    • BT3K

    #2
    'Tis a good thing? You won't get an argument from me. But you wouldn't if you said it was a bad thing either.

    Ed
    Do you know about kickback? Ray has a good writeup here... https://www.sawdustzone.org/articles...mare-explained

    For a kickback demonstration video http://www.metacafe.com/watch/910584...demonstration/

    Comment

    • cgallery
      Veteran Member
      • Sep 2004
      • 4503
      • Milwaukee, WI
      • BT3K

      #3
      I'll take a guess. If the string you're searching doesn't contain "kickstart" or "fabric os," the loop becomes endless.

      Comment

      • gerti
        Veteran Member
        • Dec 2003
        • 2233
        • Minnetonka, MN, USA.
        • BT3100 "Frankensaw"

        #4
        index++ or something like that missing...

        Comment

        Working...