content of ask file
kray at sonsothunder.com
Sat Nov 11 19:09:12 CST 2006
On 11/11/06 5:54 PM, "Scott Morrow" <scott at elementarysoftware.com> wrote:
> After presenting the < ask file > dialog what would be the best way
> to determine what the user typed?
> If they enter a slash "/" as part of the file name then getting item
> -1 of it won't work.
> Perhaps my question should be:
> How might I keep the user from entering a slash as part of the file
> Or, how do other folks deal with this?
Here's a way you can use:
ask file "Enter a file path:"
put it into tPath
if tPath <> "" then
if there is a folder (item 1 to -2 of pPath) then
-- code if a good path
-- code if a bad path
answer "Bad path"
Sons of Thunder Software, Inc.
Web site: http://www.sonsothunder.com/
Email: kray at sonsothunder.com
More information about the use-livecode