Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
I did a quick search but I didn't find the information I need.
I have a stack which asks the User for a Directory. The Filepath is stored in a local variable. How can I save or store this variable (because if I close the stack and reopen it in standalone mode the variable has changed into the default value).
I tried the save this stack command but that doesn't solve the problem.
on mouseUp
global tRRWADDirectory
answer folder "Please choose the folder with your default WAD files. Rock Raiders Maindirectory"
put it into tRRWADDirectory
if there is no folder tRRWADDirectory then exit mouseUp
put tRRWADDirectory into field "Folder"
write tRRWADDirectory to file "Directory.dat"
end mouseUp
As you can see I tried to store the value in a file which should be loaded on every start of the application but that doesn't work too.
In a standalone, savestack doesn't work for the mainstack. Theres a thread here somewhere that goes into explaining how to use a splashstack to open another stack, and on close it then saves the 2nd stack. Mainstacks can't be saved if i understand correctly.
As for keeping the information in a file, that should work, but without more code to see whats up, hard to say whats wrong.
I think what bites ou here is virtualisation under Win Vista or higher. You might want to store your files in a place known to have write permissions and restore it from there if necessary.
One place I can think of would be specialfolderpath(35)
Thank you very much! Now it's also working with Win7! The Core works now I will have to implent my download system.
This Program will allow the user to download mods from a server. I want all the uploaded mods to be listened in a field. The User selects a listened mod and clicks on the button "Download" and voila everything is downloaded and installed.
I just have to work out how this could be done^^.
With Revolution it isn't that difficult as with C++;)