Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
findreplace issue?
#1
does findreplace have an upper limit of the source string size?
I can get it to work on a len<12 but when the ss is >35000 it doesn't seem to work.
Thanks.
#2
Please show the macro. I tested with this:

Code:
Copy      Help
str s.getfile("$qm$\winapiqm.txt")
out s.len

s.findreplace("[]" "[][]")
out s.len

ShowText "" s

and it works well.
#3
here is what i have. there are some var that i use in the first part to ftp the file.

the length of the var b at the end is 38572.

thanks


Code:
Copy      Help
str ss ti x y z q a b c t
lpstr s
ClearOutput

y=","
q="'"
b="{'"
c="}"
x.getfile("this file name.txt")
rep
,if(z.getl(x)<0)

,,b+c
,,break
,b+z
,b+q
,b+y
,b+q
b.findreplace("','','" "")
a.right(b 9)
#4
You want to replace ',",' or ','','? In case 2, use

Code:
Copy      Help
b.findreplace("',[39]','" "','" 8)
#5
AAAAAhhhhh it's "[]"!
yeah, i tried feeding in the ascii code but couldnt figure out how to do it. i used everything but "[]" 80)

thanks so much....

Ken


Forum Jump:


Users browsing this thread: 1 Guest(s)