diff --git a/helpcontent2/source/text/sbasic/shared/03120308.xhp b/helpcontent2/source/text/sbasic/shared/03120308.xhp index 3c1d6e18f7..963c9058af 100755 --- a/helpcontent2/source/text/sbasic/shared/03120308.xhp +++ b/helpcontent2/source/text/sbasic/shared/03120308.xhp @@ -52,61 +52,63 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -RSet Statement [Runtime] +RSet Statement [Runtime] /text/sbasic/shared/03120308.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- RSet;statementRSet Statement [Runtime] - Right-aligns a string within a string variable, or copies a user-defined variable type into another. -
- Syntax: - RSet Text As String = Text or RSet Variable1 = Variable2 - Parameters: - Text: Any string variable. - Text: String that you want to right-align in the string variable. - Variable1: User-defined variable that is the target for the copied variable. - Variable2: User-defined variable that you want to copy to another variable. - If the string is shorter than the string variable, RSet aligns the string to the right within the string variable. Any remaining characters in the string variable are replaced with spaces. If the string is longer than the string variable, characters exceeding the length of the variable are truncated, and only the remaining characters are right-aligned within the string variable. - You can also use the RSet statement to assign variables of one user-defined type to another. - The following example uses the RSet and LSet statements to modify the left and right alignment of a string. - Example: - Sub ExampleRLSet - Dim sVar as string - Dim sExpr as string - - sVar = String(40,"*") - sExpr = "SBX" - REM Right-align "SBX" in a 40-character string - REM Replace asterisks with spaces - RSet sVar = sExpr - Print ">"; sVar; "<" - - sVar = String(5,"*") - sExpr = "123457896" - RSet sVar = sExpr - Print ">"; sVar; "<" - - sVar = String(40,"*") - sExpr = "SBX" - REM Left-align "SBX" in a 40-character string - LSet sVar = sExpr - Print ">"; sVar; "<" - - sVar = String(5,"*") - sExpr = "123456789" - LSet sVar = sExpr - Print ">"; sVar; "<" - End Sub - +
+RSet statement + +RSet Statement [Runtime] +Right-aligns a string within a string variable, or copies a user-defined variable type into another. +
+Syntax: +RSet Text As String = Text or RSet Variable1 = Variable2 +Parameters: + +Text: Any string variable. + +Text: String that you want to right-align in the string variable. + +Variable1: User-defined variable that is the target for the copied variable. + +Variable2: User-defined variable that you want to copy to another variable. +If the string is shorter than the string variable, RSet aligns the string to the right within the string variable. Any remaining characters in the string variable are replaced with spaces. If the string is longer than the string variable, characters exceeding the length of the variable are truncated, and only the remaining characters are right-aligned within the string variable. +You can also use the RSet statement to assign variables of one user-defined type to another. +The following example uses the RSet and LSet statements to modify the left and right alignment of a string. +Example: +Sub ExampleRLSet +Dim sVar as string +Dim sExpr as string +sVar = String(40,"*") +sExpr = "SBX" +REM Right-align "SBX" in a 40-character string +REM Replace asterisks with spaces +RSet sVar = sExpr +Print ">"; sVar; "<" +sVar = String(5,"*") +sExpr = "123457896" +RSet sVar = sExpr +Print ">"; sVar; "<" +sVar = String(40,"*") +sExpr = "SBX" +REM Left-align "SBX" in a 40-character string +LSet sVar = sExpr +Print ">"; sVar; "<" +sVar = String(5,"*") +sExpr = "123456789" +LSet sVar = sExpr +Print ">"; sVar; "<" +End Sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03120309.xhp b/helpcontent2/source/text/sbasic/shared/03120309.xhp index ff3fe3020d..c31a32e058 100755 --- a/helpcontent2/source/text/sbasic/shared/03120309.xhp +++ b/helpcontent2/source/text/sbasic/shared/03120309.xhp @@ -52,46 +52,48 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -RTrim Function [Runtime] +RTrim Function [Runtime] /text/sbasic/shared/03120309.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- RTrim;functionRTrim Function [Runtime] - Deletes the spaces at the end of a string expression. -
- See also: LTrim Function - Syntax: - RTrim (Text As String) - Return value: - String - Parameters: - Text: Any string expression. - - - Example: - Sub ExampleSpaces - Dim sText2 as String,sText as String,sOut as String - sText2 = " <*Las Vegas*> " - - sOut = "'"+sText2 +"'"+ Chr(13) - sText = Ltrim(sText2) REM sText = " <*Las Vegas*> " - sOut = sOut + "'"+sText +"'" + Chr(13) - sText = Rtrim(sText2) REM sText = " <*Las Vegas*> " - sOut = sOut +"'"+ sText +"'" + Chr(13) - sText = Trim(sText2) REM sText = " <*Las Vegas*> " - sOut = sOut +"'"+ sText +"'" - MsgBox sOut - end sub - +
+RTrim function + +RTrim Function [Runtime] +Deletes the spaces at the end of a string expression. +
+See also: LTrim Function +Syntax: +RTrim (Text As String) +Return value: +String +Parameters: + +Text: Any string expression. + + +Example: +Sub ExampleSpaces +Dim sText2 as String,sText as String,sOut as String +sText2 = " <*Las Vegas*> " +sOut = "'"+sText2 +"'"+ Chr(13) +sText = Ltrim(sText2) REM sText = " <*Las Vegas*> " +sOut = sOut + "'"+sText +"'" + Chr(13) +sText = Rtrim(sText2) REM sText = " <*Las Vegas*> " +sOut = sOut +"'"+ sText +"'" + Chr(13) +sText = Trim(sText2) REM sText = " <*Las Vegas*> " +sOut = sOut +"'"+ sText +"'" +MsgBox sOut +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03120310.xhp b/helpcontent2/source/text/sbasic/shared/03120310.xhp index f9a0170045..5fd8e08cf2 100755 --- a/helpcontent2/source/text/sbasic/shared/03120310.xhp +++ b/helpcontent2/source/text/sbasic/shared/03120310.xhp @@ -52,40 +52,44 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -UCase Function [Runtime] +UCase Function [Runtime] /text/sbasic/shared/03120310.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- UCase;functionUCase Function [Runtime] - Converts lowercase characters in a string to uppercase. -
- See also: LCase Function - Syntax: - UCase (Text As String) - Return value: - String - Parameters: - Text: Any string expression that you want to convert. - - - Example: - Sub ExampleLUCase - Dim sVar As String - sVar = "Las Vegas" - Print LCase(sVar) REM returns "las vegas" - Print UCase(sVar) REM returns "LAS VEGAS" - end Sub - - +
+UCase function + +UCase Function [Runtime] +Converts lowercase characters in a string to uppercase. +
+See also: LCase Function + +Syntax: +UCase (Text As String) + +Return value: +String +Parameters: + +Text: Any string expression that you want to convert. + + +Example: +Sub ExampleLUCase +Dim sVar As String +sVar = "Las Vegas" +Print LCase(sVar) REM returns "las vegas" +Print UCase(sVar) REM returns "LAS VEGAS" +end Sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03120311.xhp b/helpcontent2/source/text/sbasic/shared/03120311.xhp index f70a542b05..c858f1ff27 100755 --- a/helpcontent2/source/text/sbasic/shared/03120311.xhp +++ b/helpcontent2/source/text/sbasic/shared/03120311.xhp @@ -1,4 +1,4 @@ - + - - - - -Trim Function [Runtime] -/text/sbasic/shared/03120311.xhp - - -Sun Microsystems, Inc. -converted from old format - fpe -dedr: fixed #i30791# - - - + ************************************************************************--> + + + + +Trim Function [Runtime] +/text/sbasic/shared/03120311.xhp + + +Sun Microsystems, Inc. +converted from old format - fpe +dedr: fixed #i30791# + + +
-Trim;function - -Trim Function [Runtime] -Removes all leading and trailing spaces from a string expression. -
-Syntax: -Trim( Text As String ) -Return value: -String -Parameters: - -Text: Any string expression. - - -Example: -Sub ExampleSpaces -Dim sText2 as String,sText as String,sOut as String -sText2 = " <*Las Vegas*> " -sOut = "'"+sText2 +"'"+ Chr(13) -sText = Ltrim(sText2) REM sText = " <*Las Vegas*> " -sOut = sOut + "'"+sText +"'" + Chr(13) -sText = Rtrim(sText2) REM sText = " <*Las Vegas*> " -sOut = sOut +"'"+ sText +"'" + Chr(13) -sText = Trim(sText2) REM sText = " <*Las Vegas*> " -sOut = sOut +"'"+ sText +"'" -MsgBox sOut -end sub - -
+Trim function + +Trim Function [Runtime] +Removes all leading and trailing spaces from a string expression. + +Syntax: +Trim( Text As String ) +Return value: +String +Parameters: + +Text: Any string expression. + + +Example: +Sub ExampleSpaces +Dim sText2 as String,sText as String,sOut as String +sText2 = " <*Las Vegas*> " +sOut = "'"+sText2 +"'"+ Chr(13) +sText = Ltrim(sText2) REM sText = " <*Las Vegas*> " +sOut = sOut + "'"+sText +"'" + Chr(13) +sText = Rtrim(sText2) REM sText = " <*Las Vegas*> " +sOut = sOut +"'"+ sText +"'" + Chr(13) +sText = Trim(sText2) REM sText = " <*Las Vegas*> " +sOut = sOut +"'"+ sText +"'" +MsgBox sOut +end sub + +