Texas Instruments NS/CLM/1L1/B Reference Guide - Page 113

Error codes and messages

Page 113 highlights

© (comment) © [text] © processes text as a comment line, allowing you to annotate functions and programs that you create. © can be at the beginning or anywhere in the line. Everything to the right of ©, to the end of the line, is the comment. Note for entering the example: In the Calculator application on the handheld, you can enter multi-line definitions by pressing @ · instead of at the end of each line. On the computer keyboard, hold down Alt and press Enter. /k keys 0b, 0h 0B 0H keys, keys 0b binaryNumber 0h hexadecimalNumber In Dec base mode: Denotes a binary or hexadecimal number, respectively. To enter a binary or hex number, you must enter the 0b or 0h prefix regardless of the Base mode. Without a prefix, a number is treated as decimal (base 10). In Bin base mode: Results are displayed according to the Base mode. In Hex base mode: Error codes and messages When an error occurs, its code is assigned to variable errCode. User-defined programs and functions can examine errCode to determine the cause of an error. For an example of using errCode, See Example 2 under the Try command, page 84. Note: Some error conditions apply only to TI-Nspire™ CAS products, and some apply only to TI-Nspire™ products. Error code 10 20 30 40 50 60 70 90 100 Description A function did not return a value A test did not resolve to TRUE or FALSE. Generally, undefined variables cannot be compared. For example, the test If a

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130

TI-Nspire™ Reference Guide
107
Error codes and messages
When an error occurs, its code is assigned to variable
errCode
. User-defined programs and functions can examine
errCode
to determine the
cause of an error. For an example of using
errCode
, See Example 2 under the
Try
command, page
84
.
Note:
Some error conditions apply only to TI-Nspire™ CAS products, and some apply only to TI-Nspire™ products.
© (comment)
/k
keys
©
[
text
]
©
processes
text
as a comment line, allowing you to annotate
functions and programs that you create.
©
can be at the beginning or anywhere in the line. Everything to the
right of
©
, to the end of the line, is the comment.
Note for entering the example:
In the Calculator application
on the handheld, you can enter multi-line definitions by pressing
@
instead of
·
at the end of each line. On the computer
keyboard, hold down
Alt
and press
Enter
.
0b, 0h
0B
keys,
0H
keys
0b
binaryNumber
0h
hexadecimalNumber
Denotes a binary or hexadecimal number, respectively. To enter a
binary or hex number, you must enter the 0b or 0h prefix regardless of
the Base mode. Without a prefix, a number is treated as decimal
(base 10).
Results are displayed according to the Base mode.
In Dec base mode:
In Bin base mode:
In Hex base mode:
Error code
Description
10
A function did not return a value
20
A test did not resolve to TRUE or FALSE.
Generally, undefined variables cannot be compared. For example, the test If a<b will cause this error if either a or b
is undefined when the If statement is executed.
30
Argument cannot be a folder name.
40
Argument error
50
Argument mismatch
Two or more arguments must be of the same type.
60
Argument must be a Boolean expression or integer
70
Argument must be a decimal number
90
Argument must be a list
100
Argument must be a matrix