LoadText

The LoadText function loads a text value from the user's storage space. Use this function when saving and loading user preferences.

 txt = app.LoadText( valueName, default );

Example

function OnStart()
{
  name = app.LoadText( "MyName", "Bill" );
  app.ShowPopup( name );

  if( name=="Bill" ) name = "Fred";
  else name = "Bill";
  app.SaveText( "MyName", name );
}
  Copy   Copy All    Run