Hate when I forget the easy ones

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
keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Hate when I forget the easy ones

Post by keyless » Fri May 16, 2008 5:03 am

Forgot how to get the path of where the stack is. I know there are a couple easy ways and I know its been mentioned in this forum many times. Unfortunatly if I knew what to search for I wouldn't have to ask the question. So can someone please remind me of the easiest way to get the current stack is in (assuming the Defaultfolder has been changed)?


UPDATE: nevermind Found it
http://forums.runrev.com/phpBB2/viewtop ... ult+folder

andyh1234
Posts: 476
Joined: Mon Aug 13, 2007 4:44 pm
Contact:

Post by andyh1234 » Fri May 16, 2008 11:22 pm

I use..

Code: Select all

the effective fileName of this stack
Seems to work fine

To get just the path this works...

Code: Select all

set the itemDelimiter to "/"
put (item 1 to -2 of the effective fileName of this stack) & "/" into tMyPath

keyless
Posts: 211
Joined: Wed Dec 12, 2007 11:21 pm

Post by keyless » Sat May 17, 2008 5:13 am

andyh1234 wrote:I use..

Code: Select all

the effective fileName of this stack
Seems to work fine

To get just the path this works...

Code: Select all

set the itemDelimiter to "/"
put (item 1 to -2 of the effective fileName of this stack) & "/" into tMyPath
thanks andy I found that last night. Thanks though, was pulling my hair out for a while.

Post Reply