Here is an example program using the STRCMP function.
DVAR $String1
DVAR $String2
MSGCLEAR -1
$Strglob[5] = "Hello"
$Strglob[6] = "Name"
$Global[10] = STRCMP ("Hello", "Hello", 1)
$Global[11] = STRCMP ($strglob[5], $strglob[6], 1)
MSGDISPLAY 1, "Stringvergleich 1: ", $global[10]
MSGDISPLAY 2, "Stringverlgeich 2: ", $global[11]
If $global[10] == 0 Then
$global[10] = 1
end if
if $global[11] == 1 Then
$global[11] = 0
End if
MSGDISPLAY 1, "Stringvergleich korrigiert 1: ", $global[10]
MSGDISPLAY 2, "Stringverlgeich korrigiert 2: ", $global[11]
Related articles