Page 1 of 1

How to retreive the version information of a standalone app.

Posted: Mon Jan 01, 2007 2:38 pm
by brainois
Hello,

I would like to build an "About the application" dialog box displaying information entered in the "Standalone application settings..." (like version information, etc...). My question is: "how do i retreive these information from a script."

Regards and happy new year to all!

Posted: Thu Jan 04, 2007 11:49 am
by oliverk
Hi Brainois,

While running in the IDE, the standalone settings for stacks are stored in a custom property set, to see the available properties and to retrieve one use something like this:

Code: Select all

put the customKeys["cRevStandaloneSettings"] of this stack & return
put the cRevStandaloneSettings["Windows,fileversion1"] of this stack after msg
However, these settings are removed by Revolution when a standalone application is built (to save memory), so you won't be able to access them
in a standalone.

One way around this is to use the savingStandalone message, which is sent to your stack in the IDE just before it is saved as a standalone. You can use this opportunity to copy information from the cRevStandaloneSettings custom property set to your own custom properties, and then use these to display the information you want.

Let me know if this is any help.

Regards

Oliver