What it does
ReadPreferenceLong takes key (a string) and defaultValue (an integer), and answers an integer.
Syntax
ReadPreferenceLong(key string, defaultValue integer) → integerParameters
| Name | Type |
|---|---|
| key | string |
| defaultValue | integer |
Every form returns
integer
Example · generated
DO Print(ReadPreferenceLong("score", 1)) Sync()LOOPReadPreferenceLong is called and its answer is printed every frame. The DO … LOOP is not decoration: a classic BASIC program ends the moment it runs out of lines, and Sync() is what draws the frame.