savingStandalone Problem

Peter Haworth pete at mollysrevenge.com
Mon Dec 13 20:07:11 EST 2010


Thanks Jacquie.  It's possible to change the version property?  The  
dictionary makes it sound like that is the version of LC, not a user- 
defined standalone app version.

Pete Haworth

On Dec 13, 2010, at 3:59 PM, J. Landman Gay wrote:

> On 12/12/10 7:08 PM, Peter Haworth wrote:
>> I have the following code in a savingStandalone handler in the  
>> script of
>> my main stack:
>>
>> go to card "FieldPrompt" of stack "Prompts" as modal
>> if the dialogData is not "Cancel" then
>> set the BandTrakVersion of stack "BandTrak" to the dialogData
>> end if
>>
>> The modal window is displayed and I enter the version number I want,
>> only it doesn't get saved into the BandTrakVersion custom property.  
>> This
>> used to work, I'm pretty sure, but has suddenly stopped working.
>
> It should work as long as the dialogdata has a value. Check your  
> prompt handler to make sure it's setting that. Is this for your own  
> use only? I usually just use the message box to set the version  
> custom property.
>
>>
>> The reason I'm doing this is that I haven't been able to find a way  
>> to
>> access the Short Version information in the Standalone Applications
>> Settings, OSX tab and I want to display the current version of the
>> application in the standalone so if there is a way to access that  
>> data
>> I'd be happy to use it instead of rolling my own..
>
> The short version is stored in your mainstack in the  
> revStandaloneSettings property set, but those properties get  
> stripped out during a standalone build, so they wouldn't be  
> available to your standalone scripts anyway. Using your custom  
> property is the best way to keep a permanent reference.
>
> -- 
> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
> HyperActive Software           |     http://www.hyperactivesw.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your  
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>





More information about the Use-livecode mailing list