Navigation:  MCL Reference > String Functions >

Like( )

Print this Topic Previous pageReturn to chapter overviewNext page

A Visual FoxPro built-in function which determines if a character expression matches another character expression.

 

Syntax

Like(cTemplatecExpression)

 

Argument

cTemplate

Specifies a template string that LIKE( ) compares with cExpression. cTemplate can contain the wildcards such as * and ?. The question mark (?) matches any single character in cExpression and the asterisk (*) matches any number of characters. You can mix any number of wildcards in any combination in cTemplate.

cExpression

Specifies the character expression LIKE( ) compares with cTemplate. cExpression must match cTemplate letter for letter in order for LIKE( ) to return true (.T.).

 

Returns

Logical

 

 


Page url: http://www.racematenet.com/english/help/index.html?like.htm