en:setsetting [BASIC 256 - Language Documentation]

# BASIC 256 - Language Documentation

en:setsetting

## SetSetting (Statement)

### Format

setsetting program_name, key_name, string_expr
setsetting ( program_name, key_name, string_expr )

### Description

Save a string_expr to the system registry (or other persistent storage). The program_name and key_name are used to categorize and to make sure that settings accessed when needed and not accidentally changed by another program.

The saved value will be available to other BASIC-256 programs and should remain available for an extended period.

This statement may be disabled because of potential system security issues. Availability may be configured in the IDE by going to the Edit>Preferences menu.

### Example

    setsetting "thisprogram", "testsetting", "value of setting"
    print getsetting("thisprogram", "testsetting")

will print

    value of setting

### See Also

GetSetting

### History

0.9.6.38 | New To Version

en/setsetting.txt · Last modified: 2014/02/09 14:24 by admin