> on mouseUp > put "select a db" into answerPrompt > switch the platform > case "MacOS" > answer file answerPrompt of type "sdb0" > play audioClip "click.au" > break > case "Win32" > answer file answerPrompt with filter "Serendipity > Database--Binary" & return & "*.sdb" > play audioClip "click.au" > break > default > answer file answerPrompt with filter "*.sdb" > play audioClip "click.au" > end switch > if it is empty then return false > else put it into sdbFileName > set the sdbFile of this stack to sdbFileName > answer "there is file"&&sdbfilename&&(there is a file > sdbfilename) -- last word in answer is "true" > answer "there is stack"&&sdbfilename&&(there is a stack > sdbfilename) -- last word in answer is "true" > get the sdbEditPassword of stack sdbFileName > put "i got the password" > end mouseUp > > On Windows XP, RR v2.6.1, "(there is a stack sdbfilename)" resolves > to "false", and the next statement returns a "can't find stack" error.
Hi Rob, I don't know why it is different on Windows, but I would guess that the "play" command is putting something into "it". I make it a rule always to grab the value of "it" immediately and never to do another command before putting "it" into another variable. HTH, Sarah _______________________________________________ use-revolution mailing list [email protected] Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
