This shows you the differences between two versions of the page.
built_in:load_text [2015/03/04 18:11] octazid created |
built_in:load_text [2016/08/03 13:45] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====LoadText===== | ||
- | // | ||
- | |||
- | ====Description==== | ||
- | |||
- | The **LoadText** method loads a text value from the user's storage space. Use this method when saving and loading user preferences. | ||
- | |||
- | The third parameter is an optional text parameter and allows sharing of data across multiple Apps when the same id is used by both apps. | ||
- | |||
- | < | ||
- | |||
- | See also [[built_in: | ||
- | |||
- | ---- | ||
- | |||
- | ====Example==== | ||
- | |||
- | <code javascript> | ||
- | |||
- | function OnStart() | ||
- | { | ||
- | name = app.LoadText( " | ||
- | app.ShowPopup( name ); | ||
- | |||
- | if( name==" | ||
- | else name = " | ||
- | app.SaveText( " | ||
- | } | ||
- | |||
- | </ |