Previous Topic

Next Topic

KeepChars - MaxBasic Function

KeepChars(String1: String, String2: String): String

Removes all occurrences of any character not contained in String2 from String 1.

KeepChars function syntax has these named arguments:

Parameter

Description

String1

Required. The String to be edited.

String2

Required. The string containing the characters to be kept in String1.

Sample code:

  Print KeepChars("abcedfghijklmnopqrstuvwxyz","face")

Returns: acef

See Also

String Functions

Book Contents

Book Index