You are here: Writing Lua Scripts > Setting Minimum API Level

Setting Minimum API Level

Each release of the T-Nspire™ software includes API support for a specific set of Lua scripting features. Setting the minimum API level for a script lets you specify a minimum set of features that you require for your script.

If a user tries to run the script on a system that does not meet the script's minimum API level, a message notifies the user and prevents the script from running.

To Set the Minimum API Level for a Script:

1. Determine the minimum level that you want your script to require.
- Setting the level too low for the script's feature set can result in a script error on older software.
- Setting the level too high can result in the script refusing to start on older software that supports the feature set.
2. On the Script Editor File menu, select Set Minimum API Level.
3. In the dialog box, type the minimum level using the format major.minor. For example, you might type 2.3.

This API level or higher will be required for running the script.

 

© 2006 - 2015 Texas Instruments Incorporated