This shows you the differences between two versions of the page.
built_in:save_text [2016/01/10 07:54] 71.35.117.122 [Example] |
built_in:save_text [2020/07/07 16:56] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====SaveText===== | ||
- | // | ||
- | |||
- | ====Description==== | ||
- | |||
- | The **SaveText** method saves a text **value** to the user's storage space under **valueName**. Use this method when saving and loading user preferences. | ||
- | |||
- | The third parameter **id** 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( " | ||
- | } | ||
- | What ever this^^^^ is. it is not correct. | ||
- | </ |