local variable

Yves Coppé yvescoppe at skynet.be
Wed Oct 9 11:52:01 CDT 2002


Hi Ken

That's a question for you.

My script goes as follow :

local theDay, TheMonth, TheYear
...
...

-- I put a variable into L, set itemdel to tab and check item 1 of L 
if it is a date (european format)

  if matchtext( item 1 of 
L,"(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9])",theDay,TheMonth,TheYear) 
is true then
          ...
end if


but I have to run the same code further in the same script. about 
another line in another field.

My question :

do I have to reset the variable theDay, TheMonth, TheYear to empty 
before calling again the same code
  if matchtext( item 1 of 
L,"(0[1-9]|[12][0-9]|3[01])/(0[1-9]|1[0-2])/([0-9][0-9])",theDay,TheMonth,TheYear) 
is true then
          ...
end if


Thanks for your help.
-- 
Greetings.

Yves COPPE

Email : yvescoppe at skynet.be
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.runrev.com/pipermail/use-livecode/attachments/20021009/e2dd4bc1/attachment.html>


More information about the use-livecode mailing list