On 29/1/01 10:32 am, jbv <[EMAIL PROTECTED]> wrote:

> But if your mc app runs from a CD-ROM, this solution might get a bit
> tricky...
> 
> Why not use a global variable for each stack ? At startup you declare the
> variable and test its value. If the value is empty, that means the stack opens

This would work on the Mac, but on Windows a seperate "instance" of the
program is run each time you double click a stack or standalone in Windows
(unless you use DDE and the externals collection to load just one instance).
As these instances are completely seperate globals cannot be passed between
them.  So you do need to resort to using a file.  If you're using a locked
disk such as a CD-ROM, you can save the file into the temporary directory
(the tempname function will always return the path to a file you can write
to).

Regards,

Kevin

Kevin Miller <[EMAIL PROTECTED]> <http://www.runrev.com/>
Runtime Revolution Limited (formerly Cross Worlds Computing).
Tel: +44 (0)131 672 2909.  Fax: +44 (0)1639 830 707.


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.

Reply via email to