MyString1 is string = "Developing is fantastic"MyString2 is string = "Developing is simple"ResultCompare is int = StringCompare(MyString1, MyString2)// ResultCompare = -1: the character 'f' comes before the character 's'

Some ANSI strings, some Unicode strings and some buffers can be used in the different parameters of the function (<First String> and <Second String&gt).

The following conversion rule is used for the Ansi systems (Windows or Linux):

It at least one of the strings is a buffer, all the strings are converted into buffers and the operation is performed with buffers,

If the first condition is not fulfilled, if at least one of the strings in in Unicode format, all the strings are converted into Unicode and the operation is performed in Unicode (the conversion is performed with the current character set if necessary)

Otherwise, the operation is performed in Ansi.

The following conversion rule is used for the Unicode systems (Windows CE):

It at least one of the strings is a buffer, all the strings are converted into buffers and the operation is performed with buffers,

Otherwise, the operation is performed in Unicode.

The linguistic parameters used are defined during the call to ChangeCharset.