Click or drag to resize

CharEven Function

Return the even-numbered characters in a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.4a
Syntax
 FUNCTION CharEven(
	cString AS STRING
) AS STRING
View Source

Parameters

cString
Type: String
The string whose even-numbered characters you want to return.

Return Value

Type: String
Every other character in the string, starting from the second character.
Remarks
Examples
These examples display every even character in a string:
X#
1? CharEven("A1B2C3")            // 123
2? CharEven("1234567890")            // 24680
See Also