Thank you again so much. Will domagice wrote:Good job. However, using globals is a bad habit to get into, especially when you get into larger projects. To answer your other question, look at the menu bar under file for "Import as a control"Alex_CTZ wrote:
Ahhh I love you! haha.
I did this:and button 2Code: Select all
on mouseUp global serverLocation answer file "What is the server path?" put it into serverLocation end mouseUp
It works nowCode: Select all
on mouseUp global serverLocation put serverLocation into variableserver put "start " & variableserver into myShell replace "'" with quote in myShell get shell(myShell) end mouseUp
Thank you so much, I now kind of understand the whole global and local variables
One more question,say I wanted to make a installer for something. How would I include a file so it could be put on the computer when installed? Can this be done?
your homework:
Do some searching on this forum. there are several threads on using custom properties to store variables. also play around with the script local variables by declaring them local outside of handlers.


