open stack problem

Sarah Reichelt sarahr at genesearch.com.au
Wed Jun 15 18:39:10 EDT 2005


> I have a button with this script
>
> on mouseUp
>   doFileOpen
> end mouseUp
>
> And in the stack script
>
> on doFileOpen
>     answer file "Select a database file:" \
>         with filter "Armbase Database File" & return & "*.abd"
>   if it is empty then exit to top
>   toplevel stack it
> end doFileOpen
>
Hi Bob,

A couple of suggestions:

Are you using Rev 2.6? If so, there have been changes in the answer  
file filtering. They are detailed in the What's New text file.

What happens if you use no filtering and allow any file type to be  
selected?

Get your routine to "put" the file path before trying to open it and  
see if that looks correct.

Cheers,
Sarah



More information about the use-livecode mailing list