LikeC Function | |
Determines whether a character expression matches another character expression.
Namespace:
XSharp.VFP
Assembly:
XSharp.VFP (in XSharp.VFP.dll) Version: 2.19
Syntax FUNCTION LikeC(
cExpression1,
cExpression2
) AS LOGIC CLIPPER
[ClipperCallingConventionAttribute(new string[] { ... })]
public static bool LikeC(
Usual cExpression1 = default,
Usual cExpression2 = default
)
Request Example
View SourceParameters
- cExpression1 (Optional)
- Type: Usual
Specifies the character expression that LikeC( ) compares with cExpression2. cExpression1 can contain wild cards such as * and ?. A question mark (?) matches any single character in cExpression2 and an asterisk (*) matches any number of characters. You can mix any number of wild cards in any combination in cExpression1.
- cExpression2 (Optional)
- Type: Usual
Specifies the character expression LikeC( ) compares with cExpression1. cExpression2 must match cExpression1 character for character in order for LIKE() to return true (.T.).
Return Value
Type:
Logic
Logical
Remarks LikeC( ) is designed for expressions containing double-byte characters. If the expression contains only single-byte characters, LikeC( ) is equivalent to LIKE( ).
LikeC( ) determines if a character expression matches another character expression. LikeC( ) returns true (.T.) if cExpression1 matches cExpression2; otherwise, it returns false (.F.).
SET COMPATIBLE determines how LikeC( ) compares blanks in cExpression1 and cExpression2. If SET COMPATIBLE is set to ON or DB4, all trailing blanks are removed from cExpression1 and cExpression2 before they are compared. If SET COMPATIBLE is set to OFF or FOXPLUS, any trailing blanks in cExpression1 and cExpression2 are used in the comparison.
This function is useful for manipulating double-byte character sets for languages such as Hiragana and Katakana.
See Also