Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by lhailey

  1. lhailey

    Exit 2 (two) for loops after a condition is met.

    Hi, I have a working script where I am trying to exit 2 (two) for loops after a condition is met. Can you help? I included the snippet that is in question and the entire script which is below. Thank-you Here is the snippet: If n = 3 Then print "Terminated after" & n & " loops" 'I want...
  2. lhailey

    How do I break out of Do Loop after 10 minutes?

    Hi, I need help breaking out of a loop after x number of minutes. The following script loops every 5 seconds until txtout = txtin. The script loops indefinitely if txtout does not equal txtin. How do I break out of the loop after 10 minutes? 'Loop start Do txtout =...
  3. lhailey

    How do I delete characters in a string?

    Can you help? I am using vbscript with QTP and I am trying to delete characters in a string. I want my code to output: "3900". The original string is: "System;3900;Chassis 1;S-Blade;3900 01.01.01" My code currently outputs: "3900 Remove from Here to End 1;S-Blade;3900 01.01.01" How do I...
  4. lhailey

    read the last 5 lines of text file

    Can you help modify this script? I have a working script (below) that will read the last line of a text file and then report whether the specific text ("Charlie Brown") was found or not. I would like to modify the script to read the last 5 lines of the text file and then report if ("Charlie...

Part and Inventory Search

Back
Top