From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- .../source/text/sbasic/shared/03120403.xhp | 81 ++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 helpcontent2/source/text/sbasic/shared/03120403.xhp (limited to 'helpcontent2/source/text/sbasic/shared/03120403.xhp') diff --git a/helpcontent2/source/text/sbasic/shared/03120403.xhp b/helpcontent2/source/text/sbasic/shared/03120403.xhp new file mode 100644 index 000000000..6551e263d --- /dev/null +++ b/helpcontent2/source/text/sbasic/shared/03120403.xhp @@ -0,0 +1,81 @@ + + + + + + + StrComp Function + /text/sbasic/shared/03120403.xhp + + + + + + +
+ + StrComp function + + + +StrComp Function +Compares two strings and returns an integer value that represents the result of the comparison. +
+ +Syntax: + +StrComp (Text1 As String, Text2 As String[, Compare]) + + +Return value: +Integer + +Parameter: + Text1: Any string expression + Text2: 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. + +Return value + + + + If Text1 < Text2 the function returns -1 + + + If Text1 = Text2 the function returns 0 + + + If Text1 > Text2 the function returns 1 + + + + +Example: + +Sub ExampleStrComp +Dim iVar As Single +Dim sVar As String + iVar = 123.123 + sVar = Str$(iVar) + MsgBox strcomp(sVar , Str$(iVar),1) +End Sub + + + +
\ No newline at end of file -- cgit v1.2.3