replacetext
Jeanne A. E. DeVoto
jeanne at runrev.com
Fri Jan 18 21:02:01 EST 2002
At 5:11 AM -0800 1/18/2002, Mike McManus wrote:
>Why does the line
>
>replaceText((line n of textToParse),"red","blue")
>
>always generate the error: Expression: missing ')' before factor.
It's because it's not a complete Transcript statement. Every
valid statement starts with a command, and replaceText isn't
a command - it's a function.
You can fix this by simply changing it to something like
put replaceText ((line n of textToParse),"red","blue") into line n of textToParse
--
Jeanne A. E. DeVoto ~ jeanne at runrev.com
http://www.runrev.com/
Runtime Revolution Limited - Power to the Developer!
More information about the use-livecode
mailing list