Campbell CR800 Dokumentacja Strona 270

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 324
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 269
Section 11. String Functions
11-4
StrComp (String1, String2)
The StrComp function is used to compare two strings by subtracting the
characters in one string from the characters in another.
Syntax
Variable = StrComp ( String1, String2 )
Remarks
The StrComp instruction is typically used to determine if two strings are
identical. Starting with the first character in each string, the characters in
String2 are subtracted from the characters in String1 until the difference is non-
zero or until the end of String2 is reached. The result of this instruction is an
integer in the range of -255 to +255. If 0 is returned, the strings are identical.
UpperCase (SourceString)
Returns an upper case string of SourceString
Przeglądanie stron 269
1 2 ... 265 266 267 268 269 270 271 272 273 274 275 ... 323 324

Komentarze do niniejszej Instrukcji

Brak uwag