Re: MatchText creates variables?

2001-07-27 Thread Klaus Major

Hi Geoff,

actually the MC-help says that variabels have to be declared before
using them in matchtext(...)

 In the docs, it says to be sure to initialize variables before using them to
 store matches found with MatchText. Yet the following works:
 

local tNeverInitialized ###!!! this is what the help means !!!
on mouseUp
   get matchText(test this,(.*) ,tNeverInitialized)
   put tNeverInitialized -- puts test , not reliable, see below
end mouseUp

 Any ideas?

Sometimes some things work like not expected ;-), even in MC...
(in a good or bad manner...)

Fact is: NEVER rely on these anomalies 
I did once and the shit done hit the fan...


Hope this helps.



Regards

Klaus Major [EMAIL PROTECTED]
MetaScape GmbH


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.




MatchText creates variables?

2001-07-26 Thread Geoff Canyon

In the docs, it says to be sure to initialize variables before using them to store 
matches found with MatchText. Yet the following works:

on mouseUp
  get matchText(test this,(.*) ,tNeverInitialized)
  put tNeverInitialized -- puts test
end mouseUp

Any ideas?

MC 2.3.2, Mac OS 9

regards,

Geoff


Archives: http://www.mail-archive.com/metacard@lists.runrev.com/
Info: http://www.xworlds.com/metacard/mailinglist.htm
Please send bug reports to [EMAIL PROTECTED], not this list.