Previous Topic

Next Topic

Right - MaxBasic Function

Right(String: String, Length: Number): String

Right string. Returns the rightmost Length characters of String. If String contains less than Length characters, the entire string is returned.

Right function syntax has these named arguments:

Parameter

Description

String

Required. String to return the rightmost characters for.

Length

Required. The length of the string to be returned. If the String is shorter than Length, the entire string is returned.

For example:

  Right("courage", 4)

Returns: rage

See Also

String Functions

Book Contents

Book Index