From 61173c1b58efa79c0ba6b08348d2796a249d0186 Mon Sep 17 00:00:00 2001 From: Norbert Thiebaud Date: Sat, 1 Sep 2012 09:51:27 -0500 Subject: move help structure one directory up Change-Id: Ie970e39fbb6795a92d9fdd13510409d7dcd071bc --- source/text/sbasic/shared/03120403.xhp | 83 ++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 source/text/sbasic/shared/03120403.xhp (limited to 'source/text/sbasic/shared/03120403.xhp') diff --git a/source/text/sbasic/shared/03120403.xhp b/source/text/sbasic/shared/03120403.xhp new file mode 100644 index 0000000000..6b6a17acd5 --- /dev/null +++ b/source/text/sbasic/shared/03120403.xhp @@ -0,0 +1,83 @@ + + + + + + + + +StrComp Function [Runtime] +/text/sbasic/shared/03120403.xhp + + +Sun Microsystems, Inc. +converted from old format - fpe + + + +
+StrComp function + +StrComp Function [Runtime] +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 + +
-- cgit