From de1d2458e16766976495fc8138fd5ea75a60ae72 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Fri, 26 Nov 2004 14:11:52 +0000 Subject: INTEGRATION: CWS helpcontentbeta (1.1.2); FILE MERGED 2004/09/16 11:45:33 fpe 1.1.2.1: Regular Update --- .../source/text/sbasic/shared/03090407.xhp | 47 ++++++++-------- .../source/text/sbasic/shared/03090408.xhp | 41 +++++++------- .../source/text/sbasic/shared/03090410.xhp | 63 +++++++++++----------- .../source/text/sbasic/shared/03090411.xhp | 30 ++++++----- 4 files changed, 93 insertions(+), 88 deletions(-) diff --git a/helpcontent2/source/text/sbasic/shared/03090407.xhp b/helpcontent2/source/text/sbasic/shared/03090407.xhp index 95ca2099f4..38cbe1e11a 100644 --- a/helpcontent2/source/text/sbasic/shared/03090407.xhp +++ b/helpcontent2/source/text/sbasic/shared/03090407.xhp @@ -53,37 +53,38 @@ * * ************************************************************************--> + -Rem Statement [Runtime] +Rem Statement [Runtime] /text/sbasic/shared/03090407.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Rem;statementcomments;RemRem Statement [Runtime] - Specifies that a program line is a comment. -
- Syntax: - Rem Text - Parameters: - Text: Any text that serves as a comment. - You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment. - Example: - Sub ExampleMid - DIM sVar As String - sVar = "Las Vegas" - Print Mid(sVar,3,5) REM Returns "s Veg" - REM Nothing occurs here - end sub - - - +
+Rem statement +comments;Rem statement + +Rem Statement [Runtime] +Specifies that a program line is a comment. +
+Syntax: +Rem Text +Parameters: + +Text: Any text that serves as a comment. +You can use the single quotation mark instead of the Rem keyword to indicate that the text on a line is comments. This symbol can be inserted directly to the right of the program code, followed by a comment. +Example: +Sub ExampleMid +DIM sVar As String +sVar = "Las Vegas" +Print Mid(sVar,3,5) REM Returns "s Veg" +REM Nothing occurs here +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03090408.xhp b/helpcontent2/source/text/sbasic/shared/03090408.xhp index db2f5240d6..725e5b8674 100755 --- a/helpcontent2/source/text/sbasic/shared/03090408.xhp +++ b/helpcontent2/source/text/sbasic/shared/03090408.xhp @@ -52,33 +52,34 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Stop Statement [Runtime] +Stop Statement [Runtime] /text/sbasic/shared/03090408.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Stop;statementStop Statement [Runtime] - Stops the execution of the Basic program. -
- Syntax: - Stop - Example: - Sub ExampleStop - Dim iVar As Single - iVar = 36 - Stop - Msgbox Sqr(iVar) - end sub - - +
+Stop statement + +Stop Statement [Runtime] +Stops the execution of the Basic program. +
+Syntax: +Stop +Example: +Sub ExampleStop +Dim iVar As Single +iVar = 36 +Stop +Msgbox Sqr(iVar) +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03090410.xhp b/helpcontent2/source/text/sbasic/shared/03090410.xhp index 785f62c444..c7dd9d6a58 100755 --- a/helpcontent2/source/text/sbasic/shared/03090410.xhp +++ b/helpcontent2/source/text/sbasic/shared/03090410.xhp @@ -52,44 +52,45 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Switch Function [Runtime] +Switch Function [Runtime] /text/sbasic/shared/03090410.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Switch; functionSwitch Function [Runtime] - Evaluates a list of arguments, consisting of an expression followed by a value. The Switch function returns a value that is associated with the expression that is passed by this function. -
- Syntax: - Switch (Expression1, Value1[, Expression2, Value2[..., Expression_n, Value_n]]) - Parameters: - The Switch function evaluates the expressions from left to right, and then returns the value that is assigned to the function expression. If expression and value are not given as a pair, a runtime error occurs. - Expression: The expression that you want to evaluate. - Value: The value that you want to return if the expression is True. - In the following example, the Switch function assigns the appropriate gender to the name that is passed to the function: - - - Example: - Sub ExampleSwitch - Dim sGender As String - sGender = GetGenderIndex( "John" ) - MsgBox sGender - End Sub - - Function GetGenderIndex (sName As String) As String - GetGenderIndex = Switch(sName = "Jane", "female", sName = "John", "male") - End Function - - - +
+Switch function + +Switch Function [Runtime] +Evaluates a list of arguments, consisting of an expression followed by a value. The Switch function returns a value that is associated with the expression that is passed by this function. +
+Syntax: +Switch (Expression1, Value1[, Expression2, Value2[..., Expression_n, Value_n]]) +Parameters: +The Switch function evaluates the expressions from left to right, and then returns the value that is assigned to the function expression. If expression and value are not given as a pair, a runtime error occurs. + +Expression: The expression that you want to evaluate. + +Value: The value that you want to return if the expression is True. +In the following example, the Switch function assigns the appropriate gender to the name that is passed to the function: + + +Example: +Sub ExampleSwitch +Dim sGender As String +sGender = GetGenderIndex( "John" ) +MsgBox sGender +End Sub +Function GetGenderIndex (sName As String) As String +GetGenderIndex = Switch(sName = "Jane", "female", sName = "John", "male") +End Function +
diff --git a/helpcontent2/source/text/sbasic/shared/03090411.xhp b/helpcontent2/source/text/sbasic/shared/03090411.xhp index 1c8303d2b7..4505e431ad 100755 --- a/helpcontent2/source/text/sbasic/shared/03090411.xhp +++ b/helpcontent2/source/text/sbasic/shared/03090411.xhp @@ -52,27 +52,29 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -With Statement [Runtime] +With Statement [Runtime] /text/sbasic/shared/03090411.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- With;statementWith Statement [Runtime] - Sets an object as the default object. Unless another object name is declared, all properties and methods refer to the default object until the End With statement is reached. -
- Syntax: - With Object Statement block End With - Parameters: - Use With and End With if you have several properties or methods for a single object. - +
+With statement + +With Statement [Runtime] +Sets an object as the default object. Unless another object name is declared, all properties and methods refer to the default object until the End With statement is reached. +
+Syntax: +With Object Statement block End With +Parameters: +Use With and End With if you have several properties or methods for a single object. +
-- cgit