Applies To: |
|
Summary: |
StrSearch () is case sensitive even after setting [Code]IgnoreCase to 1 , and case mismatch will return a value of -1 (can not find sub string in source string). |
Solution: |
It is a known issue in CitectSCADA and the walk-around is rather easy, apply StrUpper or StrLower to both strings (source string and sub string) before StrSearch will result a case insensitive search.
result = StrSearch ( 0 , StrLower ( my_string2 ), StrLower ( my_string1 )) ; or result = StrSearch ( 0 , StrUpper ( my_string2 ), StrUpper ( my_string1 )) ; |
Keywords: |
Related Links
Attachments