Funci贸 StrComp

Compara dues cadenes i torna un valor enter que representa el resultat de la comparaci贸.

Sintaxi:


StrComp (string1 As String, string2 As String[, Compare As Integer]) As Integer

Par脿metres :

string1: Any string expression

string2: Any string expression

Compare: This optional parameter sets the comparison method. If Compare = 1, the string comparison is case-sensitive. If Compare = 0, no distinction is made between uppercase and lowercase letters.

Valor de retorn:

Integer

Codis d'error

5 La crida al procediment no 茅s v脿lida

Exemple :


Sub ExampleStrComp
Dim iVar As Single
Dim sVar As String
    iVar = 123.123
    sVar = Str$(iVar)
    MsgBox strcomp(sVar , Str$(iVar),1)
End Sub

Ens cal la vostra ajuda!