Opening another stack

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Glenn Boyce
Posts: 137
Joined: Thu Jul 24, 2008 11:22 pm

Opening another stack

Post by Glenn Boyce » Fri May 15, 2009 5:02 am

I trying to open another stack that isn't loaded in memory. I thought I could just:
open stack "whatever"
and it would open. Then I tried :
open stack "E:\KP Docs\Hypercard\whatever"
and it still won't open.
Obviously a syntax problem but I haven't run in to it before. Would someone please set me straight.

Thanks
Glenn

Janschenkel
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 977
Joined: Sat Apr 08, 2006 7:47 am
Contact:

Post by Janschenkel » Fri May 15, 2009 6:34 am

Hi Glenn,

Revolution works with Unix-style paths, so try replacing the "\" with "/" in your path. To help you figure out the correct path to a file, simply create a button with script

Code: Select all

on mouseUp
  answer file "Please select the file"
  if it is not empty then answer it
end mouseUp
and this will let you select the file and display the filepath according to Revolution standards.

HTH,

Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com

Glenn Boyce
Posts: 137
Joined: Thu Jul 24, 2008 11:22 pm

Post by Glenn Boyce » Sun May 17, 2009 11:22 pm

Thank you. Figured it would be something really basic.

Post Reply