Get wordOffset Causes Rev to Crash

Gregory Lypny gregory.lypny at videotron.ca
Wed Jul 29 14:44:50 EDT 2009


Hello everyone,

If I loop through a list of strings, looking for the offset of the  
word cat, then the following works fine.

	put wordOffset("cat", theString) & return after msg

But using the get command, as in
	
       get wordOffset("cat", theString)
       put it & return after msg

causes Rev to crash.  Am I doing something wrong or is this a bug?   
Note that invoking the get command just once in the message box is not  
a problem.  For example,

	get wordOffset("cat", "The cat in the hat")
	if it > 1 then put "yes"

is okay.

	Gregory



More information about the use-livecode mailing list