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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. SerSteve

    Insert or Append characters to each line

    clip= ZocClipboard("READ") clip= clip"^M" Call ZocSend ""clip||"" this is a simple script to take what you have on the clipboard and add enter to the end. cr= x2c(0d) lf= x2c(0a) crlf= cr||lf you can use CR or LF or both to replace the ^M which as i understand is just enter. if your using...
  2. SerSteve

    Read from CSV file to change multiple hostnames

    Ok i found a better way to do it DO FOREVER ln= LINEIN(file) IF STREAM(file, "S")\="READY" THEN LEAVE /* process line of file (ln) here */ PARSE VALUE ln WITH idno1","type1","name1 IF idno1 =...
  3. SerSteve

    Read from CSV file to change multiple hostnames

    It is a good thing you said that papadba i have run a couple of traces but carefully looking through one i found what is happening so for the 1st line it parses the entire csv till it finds the line it wants the problem is for the second line its not starting over instead it is picking up...
  4. SerSteve

    Read from CSV file to change multiple hostnames

    also do while( lines(file) ) dat1=LINEIN(file) PARSE VALUE dat1 WITH idno1","type1","name1 1 IF idno1 = ZocString("PART", ""||line"", 14, ";") THEN LEAVE END the variable was written wrong on this
  5. SerSteve

    Read from CSV file to change multiple hostnames

    yes i am doing the same parsing a CSV, although im over complicating it im sure im trying to parse the csv for each line in my script grabs and having the problem where it will only parse for the 1st line and then it stops
  6. SerSteve

    Read from CSV file to change multiple hostnames

    im working on a complicated parse script and have some questions i create a buffer and parse incoming lines as a ; seperated value this part of my script works fine i can get it to read line by line and pass the data exactly how i want.. now i need to either pass the line to another script...

Part and Inventory Search

Back
Top