beautypg.com

Casio ClassPad II fx-CP400 User Manual

Page 215

background image

Chapter 12: Program Application

  215

Chapter 12: Program Application

  215

StrLwr

Misc - String(2)

Syntax: StrLwr

Ⅺ"",

Function: Converts all the characters of a string to
lower case and assigns the resulting string to the
specified variable.

StrMid

Misc - String(2)

Syntax: StrMid

Ⅺ"",

n

,

name> [,]

Function: Copies a specific number of characters of a
string, starting from the

n

th character, and assigns the

resulting string to the specified variable.

Description: Omitting the number of characters
causes the string to be copied up to the end.

StrRight

Misc - String(2)

Syntax: StrRight

Ⅺ"",

n

,

name>

Function: Copies a string up to the

n

th character

from the right, and assigns the resulting string to the
specified variable.

StrRotate

Misc - String(2)

Syntax: StrRotate

Ⅺ"",

name> [,

n

]

Function: Rotates the left side part and right side
part of a string at the

n

th character, and assigns the

resulting string to the specified variable.

Description: Rotation is to the left when “

n

” is positive,

and to the right when “

n

” is negative. Omitting “

n

uses a default value of +1.

StrShift

Misc - String(2)

Syntax: StrShift

Ⅺ"",

[,

n

]

Function: Shifts a string left or right

n

characters, and

assigns the resulting string to the specified variable.

Description: Shift is to the left when “

n

” is positive,

and to the right when “

n

” is negative. Omitting “

n

uses a default value of +1.

StrSrc

Misc - String(2)

Syntax: StrSrc

Ⅺ"", "",

variable name> [,]

Function: Searches "" starting from the
specified point (

n

th character from beginning of

string) to determine if it contains the data specified
by "". If the data is found, this command
returns the location of the first character of "2>", starting from the beginning of "".

Description: Omitting the start point causes the
search to start from the beginning of "".

strToExp(

Misc - String(2)

Syntax: strToExp("")

Function: Converts a string to an expression, and
executes the expression.

StrUpr

Misc - String(2)

Syntax: StrUpr

Ⅺ"",

Function: Converts all the characters of a string to
upper case and assigns the resulting string to the
specified variable.

Switch~Case~Default~SwitchEnd

Ctrl - Switch

Syntax:
Switch

: CaseⅪ :

[] … : Break : Case

… :

[] … : Break : … : Case

n

> :

[] … : Break : Default : [] … :
SwitchEnd
through

n

> should be

expressions that produce real numbers.

Function: Executes one of a series of processes
based on the value of .

Description:
• This command executes the statement following

the Case expression that matches the Switch
expression.

• If there is no matching Case expression, the

statement following Default is executed. If there
is no Default specified, a non-match jumps to the
statement following SwitchEnd.

• You can use a multi-statement command (:) in place

of the carriage return to separate statements.

Switch~SwitchEnd can be exited using the Break

command, Return command, or Goto command.

SwitchEnd

Ctrl - Switch

See Switch~Case~Default~SwitchEnd.

T

TableInput

Misc - Setup(3)

Function: Used as a SetTVariable command
argument to specify an option. See SetTVariable.

TangentLine

I/O - Sketch

Syntax: TangentLine

,

<

x

-coordinate> [,]

Function: Draws a line tangent to the graph at the
specified

x

-value.

TCD

k

Syntax: TCD

ⅪLower value, Upper value,

df

value

Function: See “Student’s

t

Cumulative Distribution”

(page 145).

Text

I/O - Sketch

Syntax: Text

,

value>, { ; "" ; }
[,]

Function: Displays the specified text on the Graph
window.

Then

Ctrl - If

See If~Then~ElseIf~Else~IfEnd.