1-7-2

Variables and Folders

ICurrent Folder

The current folder is the folder where the variables created by applications (excluding eActivity) are stored and from which such variables can be accessed. The initial default current folder is the “main” folder.

You can also select a user folder you created as the current folder. For more information about how to do this, see “Specifying the Current Folder” on page 1-8-3.

Variable Types

ClassPad variables can be broadly grouped into three types: general variables, system variables, and local variables.

Variable Type

Description

 

 

General Variables

A general variable is one you create using any name you want.

 

Unless you specify otherwise when you are creating it, a general

 

variable is stored in the current folder. You can use the same name

 

for multiple variables, as long as each of them is stored in a different

 

folder. General variables can be deleted, renamed, etc.

 

 

System Variables

System variables are pre-defined reserved variables used by

 

ClassPad applications and other system operations. They are stored

 

in the “system” folder. System variables can be accessed without

 

specifying the folder name, and can even be accessed from another

 

folder. Since system variable names are reserved words, they cannot

 

be renamed. Whether you are allowed to delete or change the

 

contents of a system variable depends on each variable.

 

• For the names of and detailed information about system variables,

 

see the “System Variable Table” on page -7-1.

 

 

Local Variables

A local variable is a variable that is temporarily created by a defining

 

function, program, or other operation for a particular purpose. A local

 

variable is deleted automatically when execution of the program or

 

user-defined function that created it is complete. You can create a

 

local variable by including the “Local” command in a program. Any

 

variable specified as the argument of a program or a user-defined

 

function is automatically treated as a local variable.

 

 

20060301