Re: Trouble with 'there is a'

2012-01-27 Thread Pete
Thanks Ken. I am handing off the paths to an external application so I'll need to convert the slashes. Pete On Fri, Jan 27, 2012 at 10:31 AM, Ken Ray wrote: > So the only times we need to deal with path delimiters is when (a) working > with the WIndows registry (see queryRegistry/setRegistry/et

Re: Trouble with 'there is a'

2012-01-27 Thread Ken Ray
On Jan 27, 2012, at 11:56 AM, Klaus on-rev wrote: > Hi Pete, > > Am 27.01.2012 um 18:35 schrieb Pete: > >> Hi Ken, >> You're saving my life on these Mac/Windows issues, thank you! One question >> on this. What do the ask/answer file/folder dialogs return on Windows? >> Does LC convert the "\"

Re: Trouble with 'there is a'

2012-01-27 Thread Klaus on-rev
Hi Pete, Am 27.01.2012 um 18:35 schrieb Pete: > Hi Ken, > You're saving my life on these Mac/Windows issues, thank you! One question > on this. What do the ask/answer file/folder dialogs return on Windows? > Does LC convert the "\" chars to "/" before putting it into the it variable, Yes! > o

Re: Trouble with 'there is a'

2012-01-27 Thread Pete
Hi Ken, You're saving my life on these Mac/Windows issues, thank you! One question on this. What do the ask/answer file/folder dialogs return on Windows? Does LC convert the "\" chars to "/" before putting it into the it variable, or just pass whatever the os returns? Thanks, Pete > > Right. I

Re: Trouble with 'there is a'

2012-01-27 Thread Bob Sneidar
What he said. ;-) On Jan 27, 2012, at 7:42 AM, Ken Ray wrote: >> My real script did have two problem but they were quite different, and might >> be of interest. > > I'm glad you brought these up - for others reading this there are some "best > practices" to learn about these things: > >> 1.

Re: Trouble with 'there is a'

2012-01-27 Thread Bob Sneidar
I remember a long time ago in a Revolution conference far, far away, someone gave a class on good coding habits. One of the habits he mentioned was to enclose in parenthesis where you can, partly for this reason, and partly because it makes the code easier to read. I go halfway. If I have any do

Re: Trouble with 'there is a'

2012-01-27 Thread Ken Ray
> My real script did have two problem but they were quite different, and might > be of interest. I'm glad you brought these up - for others reading this there are some "best practices" to learn about these things: > 1. I had constructed a Windows-style path with "\" characters to fit in with

Re: Trouble with 'there is a'

2012-01-27 Thread Graham Samuel
Thanks to those who replied to point out a gross stupidity on my part - the example I gave wasn't a legal LiveCode statement. I was too tired to notice. Sorry for the waste of bandwidth. I found the response of the message box mysterious but at least I'll recognise it next time. My real script

Re: Trouble with 'there is a'

2012-01-26 Thread Mark Schonewille
Hi Graham, 161 means "error in source expression". Probably, it is saying that "if there is a folder (the defaultFolder)" can't be parsed into something that makes sense, which is correct because it is only the first part of an if-then-else control structure. If you remove the "if" then LiveCod

Re: Trouble with 'there is a'

2012-01-26 Thread Devin Asay
Graham, The problem is you're embedding a partial 'if' structure in your statement. Leave out the 'if': put (there is a folder (the defaultFolder)) HTH Devin On Jan 26, 2012, at 3:13 PM, Graham Samuel wrote: > I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). > I

Trouble with 'there is a'

2012-01-26 Thread Graham Samuel
I'm using LS 5.0.2. on Windows XP (OK, running under Parallels on a Mac). I'm getting unexpected results from the 'there is..' series of functions/commands - the dictionary says they're implemented as functions, which I can understand. As a very simple test, in the message box I put: put (i