Saving information in Revolution
Saving information in Revolution is simple. While data cannot be saved to a standalone mainstack, it can be saved to a standalone's substack as follows: 1. In the standalone setting, under Stacks check off Move substacks into individual stackfiles 2. Put Save this stack into the scripting on quitting. The data in the substack will then be saved. Steve Goldberg ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Saving information in Revolution.
Dear Sirs:.. How i use : On closecard End closecard To save information? I cant save information, because in Hypercard, save is automatic... How I can? Best regards, Alvaro -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Jim Lyons Enviado el: Sábado, 27 de Mayo de 2006 12:01 p.m. Para: How to use Revolution Asunto: Re: Harsh lessons in binaryDecode I previously wrote and alex replied: Alex, Sorry about the crash ;^) but shouldn't that be a4x1a4x1a12 ? (Note the ones after the x's) Nope. The docs say Parameters: The formatsList consists of one or more dataTypes, each followed optionally by an amount. A dataType is one of the following single letters: Note - ...followed *optionally* by an amount... But thanks for the sympathy :-) Whoops, I picked up on the optionally right after I hit Send. I'm really much better at lurking than helping. :^/ I did verify that in Rev 2.6 and Rev 2.7.1 (Mac OS 10.3.9) that you get a big time crash if the number of variables is less than the number of format specs. Jim Lyons ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Saving information in Revolution.
Hi Alvaro, on closeCard save this stack end closeCard or on closeStackRequest save this stack pass closeStackRequest end closeStackRequest There is also a closeStack handler, but you might want to use the closeStackRequest handler because you could decide whether you really want to close the stack, in the closeStackRequest handler, which will be useful when your project grows more advanced. Are you sure you want to save the information in the stack? If you are going to make standalones, you probably want to save the data in a text file or in a stack that is not part of the standalone. Best regards, Mark P.S. It is not necessary to quote messages that have nothing to do with the subject. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 28-mei-2006, om 0:53 heeft Alvaro Abril - Tecnologia het volgende geschreven: Dear Sirs:.. How i use : On closecard End closecard To save information? I cant save information, because in Hypercard, save is automatic... How I can? Best regards, Alvaro snip ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Saving information in Revolution.
Dear Mark.. And where I need to place the handler in the standalone? on closeStackRequest save this stack pass closeStackRequest end closeStackRequest Thank you, Alvaro Abril -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Mark Schonewille Enviado el: Sábado, 27 de Mayo de 2006 04:06 p.m. Para: How to use Revolution Asunto: Re: Saving information in Revolution. Hi Alvaro, on closeCard save this stack end closeCard or on closeStackRequest save this stack pass closeStackRequest end closeStackRequest There is also a closeStack handler, but you might want to use the closeStackRequest handler because you could decide whether you really want to close the stack, in the closeStackRequest handler, which will be useful when your project grows more advanced. Are you sure you want to save the information in the stack? If you are going to make standalones, you probably want to save the data in a text file or in a stack that is not part of the standalone. Best regards, Mark P.S. It is not necessary to quote messages that have nothing to do with the subject. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 28-mei-2006, om 0:53 heeft Alvaro Abril - Tecnologia het volgende geschreven: Dear Sirs:.. How i use : On closecard End closecard To save information? I cant save information, because in Hypercard, save is automatic... How I can? Best regards, Alvaro snip ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Saving information in Revolution.
Hello.. where I can to put this commands.. I cant save information using Standalone :) Alvaro -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Mark Schonewille Enviado el: Sábado, 27 de Mayo de 2006 04:06 p.m. Para: How to use Revolution Asunto: Re: Saving information in Revolution. Hi Alvaro, on closeCard save this stack end closeCard or on closeStackRequest save this stack pass closeStackRequest end closeStackRequest There is also a closeStack handler, but you might want to use the closeStackRequest handler because you could decide whether you really want to close the stack, in the closeStackRequest handler, which will be useful when your project grows more advanced. Are you sure you want to save the information in the stack? If you are going to make standalones, you probably want to save the data in a text file or in a stack that is not part of the standalone. Best regards, Mark P.S. It is not necessary to quote messages that have nothing to do with the subject. -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 28-mei-2006, om 0:53 heeft Alvaro Abril - Tecnologia het volgende geschreven: Dear Sirs:.. How i use : On closecard End closecard To save information? I cant save information, because in Hypercard, save is automatic... How I can? Best regards, Alvaro snip ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Saving information in Revolution.
Hi Alvaro, You put the closeStackRequest into the script of the stack that is being closed. If this stack is a substack, you might also want to put it into the script of the mainstack, depending on what you try to achieve. Sometimes, you want to runi the script of a particular card is the current card, only. In those cases, you could put the script into the card script. I could imagine that you want to find out more about the message hierarchy. If you have books about HyperCard, they will probably contain useful information about the message hierarchy. Just ignore the info about backgrounds, for now. You also probably want to have a look at Richard Gaskin's scripting conference stack about the message hierarchy at http://downloads.runrev.com/section/ scriptingconferences.php. On the same page, you will find a stack by Judy Perry, about Groups and Backgrounds, which is also very useful. Of course, other stacks on that page could also be very useful for you. Best Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 28-mei-2006, om 1:13 heeft Alvaro Abril - Tecnologia het volgende geschreven: Dear Mark.. And where I need to place the handler in the standalone? on closeStackRequest save this stack pass closeStackRequest end closeStackRequest ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Saving information in Revolution.
Alvaro, Do you mean you created a standalone but can't save data in it? That would be normal, since modifications in standalones cannot be saved. Instead, you would write the data in a field to a file, for example using syntax like put fld My Info into url file:~/Desktop/Test File.txt Note that the file path will be different if you are on Windows. Next time you open the standalone, read the data using the following syntax. put url file:~/Desktop/Test File.txt into fld My Info. I hope this helps you to get going. Don't forget to read the built-in docs. Best, Mark -- Economy-x-Talk Consultancy and Software Engineering http://economy-x-talk.com http://www.salery.biz Salery is the easiest way to get your own web store on-line: http:// www.salery.biz/salery.html Op 28-mei-2006, om 2:03 heeft Alvaro Abril - Tecnologia het volgende geschreven: Hello.. where I can to put this commands.. I cant save information using Standalone :) Alvaro ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Saving information in Revolution.
On 5/28/06, Alvaro Abril - Tecnologia [EMAIL PROTECTED] wrote: Hello.. where I can to put this commands.. I cant save information using Standalone :) You might find this article useful: http://www.revjournal.com/tutorials/saving_data_in_revolution.html Cheers, Sarah ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Saving information in Revolution
Mark: Kindest thanks for your reference! Alvaro: You may want to visit a scripting conferences stack by Ken Ray at http://downloads.runrev.com/section/scriptingconferences.php See also the specialFolderPath function via the Rev docs. I have a PDF on this as well: http://jperryl.ecs.fullerton.edu/FileIOHandout.pdf As Mark says, Hypercard's ability to save itself (that is, be self-modifying) is not supported in modern executables. But you can save settings to a text file on the stack's close and then read them back in upon a stack (that is, a file's) opening to set custom settings as far as I understand things. Everyone else: Should you still be reading, if you find anything gargantuanly stupid at http://jperryl.ecs.fullerton.edu/FileIOHandout.pdf , please do let me know! @;-) Judy On Sun, 28 May 2006, Mark Schonewille wrote: Alvaro, Do you mean you created a standalone but can't save data in it? That would be normal, since modifications in standalones cannot be saved. Instead, you would write the data in a field to a file, for example using syntax like put fld My Info into url file:~/Desktop/Test File.txt Note that the file path will be different if you are on Windows. Next time you open the standalone, read the data using the following syntax. put url file:~/Desktop/Test File.txt into fld My Info. I hope this helps you to get going. Don't forget to read the built-in docs. ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Saving information with a standalone
I guess I misunderstood something about Rev Standalones, so I'll ask here to see where I went wrong. I was under the impression that if I changed the value of a Custom Property of an object during run-time, the new value was saved in the stack when the stack quit. This is most certainly not happening for me, even though I issue a 'save' command on exit. Did I miss something? Thanx! ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Saving information with a standalone
On 5/4/06 6:20 PM, Arthur Urban [EMAIL PROTECTED] wrote: I guess I misunderstood something about Rev Standalones, so I'll ask here to see where I went wrong. I was under the impression that if I changed the value of a Custom Property of an object during run-time, the new value was saved in the stack when the stack quit. This is most certainly not happening for me, even though I issue a 'save' command on exit. Did I miss something? Thanx! The key to a standalone is that it is compiled, and when running in any operating system, its operating environment can be changed (as all programs do) but the file on the HDrive cannot be modified. You need to modify or create other files (such as text files, images, binaries, stacks) or send the data to another running program that will save it (such as SQL databases, spreadsheets, cgi's on servers). Richard Gaskin has some good info about this on his web site at Fourth World. Hope this helps. Jim Ault Las Vegas ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
saving information.
Dear Rev Programers I need to know how to save field information from within a stack. I have a button save when I click it I want safe the information in the fields on a text file. I want it to add not replace. Paul Salyers PS1 - Senior Rep. [EMAIL PROTECTED] Http://ps1.SoftSeven.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: saving information.
Here's one button script that would do it (assuming you pre-set the value in 'gMyTextFile'): on mouseUp global gMyTextFile -- contains the full pathname of your text file put --1--- cr fld first cr \ --2--- cr fld second cr \ --3--- cr fld third cr cr \ after url (file: gMyTextFile) end mouseUp This would put the following into your text file: --1--- first field stuff lniuo niyu gkjyv jytf --2--- second field stuff k,jn kjn lj,hvkj hftchf dxhn tgrfxh rtx --3--- third field stuff uytf uy5fyjt ktfli uglu --1--- 1st fld - round 2 oi hpioh iuhl iu --2--- 2nd fld - round 2 oipo8jp;oji' ... and so on. Phil Davis Paul Salyers wrote: Dear Rev Programers I need to know how to save field information from within a stack. I have a button save when I click it I want safe the information in the fields on a text file. I want it to add not replace. Paul Salyers PS1 - Senior Rep. [EMAIL PROTECTED] Http://ps1.SoftSeven.org ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution