Problem with a string

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
bbock
Posts: 4
Joined: Mon Jan 04, 2016 1:00 pm

Problem with a string

Post by bbock » Thu Mar 10, 2016 1:49 am

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!

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10331
Joined: Wed May 06, 2009 2:28 pm

Re: Problem with a string

Post by dunbarx » Thu Mar 10, 2016 4:31 am

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

Post Reply