Back

LoadText

LoadText loads and returns a text value from the user's storage space under valueName. If there is no stored valueName, then method returns default value. Use this method when saving and loading user preferences.

app.LoadText( name, default, file )

Example - 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      

string
string - path to file or folder ( "/absolute/..." or "relative/..." )