Indigo Rose Software
  #1  
Old 09-26-2003
Desmond's Avatar
Desmond Desmond is offline
Indigo Rose Staff Member
 
Join Date: Jul 2003
Posts: 628
Grin Making Data Persist Across Sessions

Making Data Persist Across Sessions

Making Data Persist Across Sessions

Document ID: IR10037
The information in this article applies to:
  • AutoPlay Media Studio 5.0 Standard Edition
  • AutoPlay Media Studio 5.0 Professional Edition

SUMMARY

This article describes how to persist data across sessions.

DISCUSSION

It is often nice to add a personal touch to your Application, such as greeting the user by name whenever your application is run.

As an example, we will create an application that prompts the user for their name the first time it is run, and stores that data in the registry. Every subsequent time that the application is run, it will greet the user with the name that they have inputted:

Place the following code in your Project's On Startup event:

user = Application.LoadValue("Information", "Name");



if user == "" then

user = "Unknown User";

user = Dialog.Input("Information Requested", "Please enter your full name:", "", MB_ICONQUESTION);

Application.SaveValue("Information", "Name", user);

end



Dialog.Message("Welcome", "Hello "..user..", welcome to my application");

This example prompts the user to enter their full name the first time they run your application, and stores that value in the registry. Every subsequent time that the user runs your application a message will pop up on the screen greeting them by name.

MORE INFORMATION

For more information please see the following topics in the AutoPlay Media Studio 5.0 help file:

  • Program Reference | Actions | Application | Application.LoadValue
  • Program Reference | Actions | Application | Application.SaveValue

KEYWORDS: AutoPlay Media Studio 5.0, Actions, Load, Save, Persist, Sessions, Remember


Last reviewed: September 26, 2003
Copyright © 2003 Indigo Rose Corporation. All rights reserved.
__________________
Setup Factory 8.0 comes with over 250 actions so you can create smaller, faster and more intelligent software installers than ever before.

WebHelp Guides: AMS | MSIFACT | SUF | TU | VP
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On



All times are GMT -6. The time now is 03:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright © 2000 - 2009 Indigo Rose Corporation. All rights reserved.
Indigo Rose Software