Click or drag to resize

SetExact Function (Logic)

X#
Toggles an exact match for character string comparisons.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION SetExact(
	lNewSetting AS LOGIC
) AS LOGIC
Request Example View Source

Parameters

lNewSetting
Type: Logic
TRUE causes strings to be compared for length and value; FALSE causes strings to be compared by length and position only. The initial default is FALSE.
This function is equivalent to the == operator for string evaluation and is preferred for most string evaluations.

Return Value

Type: Logic
If lNewSetting is not specified, SetExact() returns the current setting.
If lNewSetting is specified, the previous setting is returned.
Remarks
SetExact() returns and optionally sets the default string comparison methodology. SetExact() is a compatibility function and not recommended.
Examples