Page 1 of 1

Hope this turns out to be easy...

Posted: Sun Nov 02, 2008 8:21 am
by Zoltan
Hello, I'm a noobie here, and i've made a few things with runtime rev, but nothing great. I have been screwing around with studio version for some time, and i still haven't found out how to save the file once it is a standalone app. I've done manual buttons, and I used the standard "File" pulldown menu and it just won't work. All I want is to get my File to save once i've chenge somthing in it, such as a text field. Example:

save "Name of file" as "Type"


I know it's really simple but im done trying to figure it out -.- I feel pathetic but w/e. Please can anyone help me out here. I'm sure like everyone here could ^^. I've tried a lot more than just (save "Name of File") and looked up in directory. Please help.

-Thanx in advance :)[/u]

Posted: Sun Nov 02, 2008 10:21 am
by malte
hi Zoltan,

if you want to be able to save a stack in a standalone, the stack may not be part of the executable. You may want to look at this article:

http://revjournal.com/tutorials/saving_ ... ution.html

Hope that helps,

Malte

Posted: Tue Nov 04, 2008 5:33 am
by Zoltan
Thanx for that link, it helped a little, now I atleast understand how it works. I tried some of the things there, and still didn't work. Maybe if I explain a little better...

I want to be able to save my entire application after it is a standalone. So it is no longer a .rev file.

I want to be able to go to "File/Save Changes" and have the entire program be saved as it is. So all the text fields, images, and check boxes are saved as I last selected them.

So if I open the program as a standalone and write some text into a field, I will be able to save all the new text in the field, close the program completely then re-open it and have it still be there. Hope this makes a little more sence. I'll keep working on this post you linked me to. Thanx BTW :)

Posted: Tue Nov 04, 2008 8:17 am
by malte
Hi Zoltan,

the problem is that an executable program can not replace itself while it is running. Thi is a limitation by the operating system. So you will need to walk through all the fields, grab the contents and store it to some kind of external file, then, when your standalone launches, grab the content that has been written to the harddisk and put it back into the fields. You can have this the "easy" way, by making a small standalone that does not much more than launching a stack on startup (you do not need to keep the .rev extension, but can use something else), or use a textfile for that purpose.

Hope that helps a little,

Malte

Posted: Thu Nov 06, 2008 7:30 am
by Zoltan
Ok thanx a lot :) I thought I could do some sort of save, but that's fine, I'll deal with it ^^. Thanx again.
-Zoltan