MC IDE b9 - script editor issue

xbury.cs at clearstream.com xbury.cs at clearstream.com
Fri Jun 10 10:43:52 EDT 2005


This function in theMC script editor saving script is a concern.

If you put in a script 

on opencard

end opencard

to block the opencard messages, the setscript will not save it and
worse make the script empty...

function setscript doclose
  local ef, tline, tcol, savedscript, perror
  get the long id of me
  put "field" && quote & "Editor Field" & quote & "of " before it
  put it into ef
  get the scriptObject of me
  if it is empty \
      or (the number of lines in ef is 3 and line 2 of ef is "  "\
      and the script of it is empty) then
    if doclose then
      close this stack
      set the scriptObject of me to empty
      return true
    end if
  end if

cheers
Xavier


-----------------------------------------
Visit us at http://www.clearstream.com
                                                          
IMPORTANT MESSAGE

Internet communications are not secure and therefore Clearstream
International does not accept legal responsibility for the contents of
this message.

The information contained in this e-mail is confidential and may be
legally privileged. It is intended solely for the addressee. If you are
not the intended recipient, any disclosure, copying, distribution or
any action taken or omitted to be taken in reliance on it, is
prohibited and may be unlawful. Any views expressed in this e-mail are
those of the individual sender, except where the sender specifically
states them to be the views of Clearstream International or of any of
its affiliates or subsidiaries.

END OF DISCLAIMER
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20050610/56811f16/attachment-0001.htm


More information about the metacard mailing list