Replace in Vars's

Dar Scott dsc at swcp.com
Thu Feb 26 18:12:57 EST 2004


On Thursday, February 26, 2004, at 03:52 PM, hershrev wrote:

>      	executing at 5:46:21 PM
> Type	replace: error in pattern expression
> Object	Contact Form
> Line	replace  lOldText  with lFieldText in lEquery
> Hint	closeField

You get that at compile?  That looks like a runtime error.

You probably have lOldText empty.  The meaning is to surround every 
char with lFieldText, but the runtime is sure that is not what you 
really want.

Use try or test for empty.

Dar Scott



More information about the use-livecode mailing list