beautypg.com

Turning Technologies ExamView User Manual

Page 100

background image

ExamView Test Generator

100

left

string left(string x, int y)

Returns the first y characters of the string argument, x.

EXAMPLE

left("ExamView", 3) will return "Exa"

len

int len(string x)

Returns the number of characters in the string argument, x, not counting the null-
terminating character.

ltrim

string ltrim(string x)

Trims spaces from the left side of the string argument, x.

EXAMPLE

ltrim(" ExamView ")

will return "ExamView "

mid

string mid(string x, int start, int y)

Returns y characters starting at the start position in the string argument, x.

EXAMPLE

mid("ExamView", 2, 4)

will return "xamV"

right

string right(string x, int y)

Returns the last y characters of the string argument, x.

EXAMPLE

right("ExamView", 3)

will return "iew"

rtrim

string rtrim(string x)

Trims spaces from the right side of the string argument, x.

EXAMPLE

rtrim(" ExamView ")

will return " ExamView"

sentence

string sentence(string x)

Changes string argument, x, into a sentence that can be subdivided using the choose
function. This allows us to create a sentence that can word wrap.

EXAMPLE

sentence("This is a long sentence that might

need to wrap.")

choose(3, mySentence)

to access the 3rd tenth of the variable

mySentence

.

turningtechnologies.com/user-guides