Casio ClassPad II fx-CP400 User Manual

Page 215

Advertising
background image

Chapter 12: Program Application

  215

Chapter 12: Program Application

  215

StrLwr

Misc - String(2)

Syntax: StrLwr

Ⅺ"<string>", <storage variable name>

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

Ⅺ"<string>",

n

, <storage variable

name> [,<number of characters>]

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

Ⅺ"<string>",

n

, <storage variable

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

Ⅺ"<string>", <storage variable

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

Ⅺ"<string>", <storage variable name>

[,

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

Ⅺ"<string 1>", "<string 2>", <storage

variable name> [,<search start location>]

Function: Searches "<string 1>" starting from the
specified point (

n

th character from beginning of

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

Description: Omitting the start point causes the
search to start from the beginning of "<string 1>".

strToExp(

Misc - String(2)

Syntax: strToExp("<string>")

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

StrUpr

Misc - String(2)

Syntax: StrUpr

Ⅺ"<string>", <storage variable name>

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

Ⅺ<expression 1> : CaseⅪ<expression 2> :

[<statement>] … : Break : Case

Ⅺ<expression 3> … :

[<statement>] … : Break : … : Case

Ⅺ<expression

n

> :

[<statement>] … : Break : Default : [<statement>] … :
SwitchEnd
• <expression 1> through <expression

n

> should be

expressions that produce real numbers.

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

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

Ⅺ<graph number>,

<

x

-coordinate> [,<color command>]

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

Ⅺ<horizontal pixel value>, <vertical pixel

value>, {<numeric value> ; "<string>" ; <variable>}
[,<color command>]

Function: Displays the specified text on the Graph
window.

Then

Ctrl - If

See If~Then~ElseIf~Else~IfEnd.

Advertising