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...
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 =...
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...
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
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
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.