Overview | Statement List | Example


比较字符串

Synopsis

CMPSTR('string1','string2')

Description

Performs a lexical comparison of characters in a similar position in two strings. This comparison is based on the ASCII values contained in the ASCII Conversion Table. If the two strings are identical a 0 is returned. If the two strings are not identical and the character in string1 lexically precedes the character in string2, a -1 is returned, if string1 follows string2, a 1 is returned.

Parameters

Parameter

Description

'string1'

The literal string or string variable name of a string which is evaluated against string2.

'string2'

The literal string or string variable name of a string which is evaluated against string1.


Copyright ©2015 胡君NX二次开发官网(www.UGapi.com) QQ:85585969 All Rights Reserved.