Looking For Suggestions

LiangTyan Fui mlist at afteroffice.com
Thu Sep 19 09:18:01 EDT 2002


On 9/19/02 3:55 PM, "FlexibleLearning at aol.com" <FlexibleLearning at aol.com>
wrote:

> To prevent multiple instances, I have in the past simply written a file to
> disk to check against on launch and a simple warning message for the user.
> This allows user-over-ride in the case of a crash and thus a spurious file;
> most times it's enough to advise the program is already running and/or bring
> it to the front. Low tech solution.

Try this low tech solution:

on openstack
  open file "C:/program1.txt" for write
  if the result is not empty then quit metacard
end openstack

on closestack
  close file "C:/program1.txt"
end closestack

-- 

> hth
> 
> /H
> _________________________________________________
> Hugh Senior
> The Flexible Learning Company
> Consultant Programming & Software Solutions
> Fax/Voice: +44 (0)1483.27 87 27
> Email: <A 
> HREF="mailto:admin at flexibleLearning.com">mailto:h at flexibleLearning.com</A>
> Web: <A HREF="http://www.flexiblelearning.com/">www.flexibleLearning.com</A>
> 




More information about the metacard mailing list