Page 1 of 1

Problem with a string

Posted: Thu Mar 10, 2016 1:49 am
by bbock
Hi,

Hoping someone can help me with this. I want to search for this string using Offset:

“(‘savebutton').click();}">

but I can't get Livecode to recognize it. I thought it would be something like this:

“(’savebutton').click();}”&quote&”>”

but it keeps telling me, "Function: separator is not a ',') near ".c"

I have tried other combinations but have as yet been unsuccessful. Thanks for any help!

Re: Problem with a string

Posted: Thu Mar 10, 2016 4:31 am
by dunbarx
Hi.

What a string.

Your first char is ASCII 210, not ASCII 34. Is that what you intended? That will throw the parser into a tailspin.

Just for a start, this compiles:

Code: Select all

on mouseUp
   get "savebutton)" & ".click()" & ":}" & quote & ”>”
or
 get "savebutton).click():}" & quote & ”>”
end mouseUp
Craig Newman