Click or drag to resize

CharEven Function

X#
Return the even-numbered characters in a string.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.21
Syntax
 FUNCTION CharEven(
	cString AS STRING
) AS STRING
Request Example 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