This shows you the differences between two versions of the page.
built_in:save_number [2015/03/21 17:17] madlyr [Description] |
built_in:save_number [2020/07/07 16:54] |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====SaveNumber===== | ||
- | // | ||
- | |||
- | ====Description==== | ||
- | |||
- | The **SaveNumber** method saves a numeric **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() | ||
- | { | ||
- | num = app.LoadNumber( " | ||
- | app.ShowPopup( num ); | ||
- | |||
- | app.SaveNumber( " | ||
- | } | ||
- | |||
- | </ |