diff --git a/helpcontent2/source/text/sbasic/shared/03120402.xhp b/helpcontent2/source/text/sbasic/shared/03120402.xhp index 762cb9896c..bc9ee43b2c 100755 --- a/helpcontent2/source/text/sbasic/shared/03120402.xhp +++ b/helpcontent2/source/text/sbasic/shared/03120402.xhp @@ -52,37 +52,40 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Len Function [Runtime] +Len Function [Runtime] /text/sbasic/shared/03120402.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Len;functionLen Function [Runtime] - Returns the number of characters in a string, or the number of bytes that are required to store a variable. -
- Syntax: - Len (Text As String) - Return value: - Long - Parameters: - Text: Any string expression or a variable of another type. - - - Example: - Sub ExampleLen - Dim sText as String - sText = "Las Vegas" - MsgBox Len(sText) REM Returns 9 - End Sub - +
+Len function + +Len Function [Runtime] +Returns the number of characters in a string, or the number of bytes that are required to store a variable. +
+Syntax: +Len (Text As String) +Return value: +Long +Parameters: + +Text: Any string expression or a variable of another type. + + +Example: +Sub ExampleLen +Dim sText as String +sText = "Las Vegas" +MsgBox Len(sText) REM Returns 9 +End Sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03120403.xhp b/helpcontent2/source/text/sbasic/shared/03120403.xhp index fbc77c5c7d..f90d30c66f 100755 --- a/helpcontent2/source/text/sbasic/shared/03120403.xhp +++ b/helpcontent2/source/text/sbasic/shared/03120403.xhp @@ -52,53 +52,58 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -StrComp Function [Runtime] +StrComp Function [Runtime] /text/sbasic/shared/03120403.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- StrCompStrComp 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 - +
+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 +
diff --git a/helpcontent2/source/text/sbasic/shared/03130100.xhp b/helpcontent2/source/text/sbasic/shared/03130100.xhp index 8343e043af..7603c312bd 100755 --- a/helpcontent2/source/text/sbasic/shared/03130100.xhp +++ b/helpcontent2/source/text/sbasic/shared/03130100.xhp @@ -52,34 +52,35 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Beep Statement [Runtime] +Beep Statement [Runtime] /text/sbasic/shared/03130100.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Beep;statementBeep Statement [Runtime] - Plays a tone through the computer's speaker. The tone is system-dependent and you cannot modify its volume or pitch. -
- Syntax: - Beep - - - Example: - Sub ExampleBeep - beep - beep - beep - end sub - - +
+Beep statement + +Beep Statement [Runtime] +Plays a tone through the computer's speaker. The tone is system-dependent and you cannot modify its volume or pitch. +
+Syntax: +Beep + + +Example: +Sub ExampleBeep +beep +beep +beep +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03130500.xhp b/helpcontent2/source/text/sbasic/shared/03130500.xhp index 940ca94a18..e54de48a0f 100755 --- a/helpcontent2/source/text/sbasic/shared/03130500.xhp +++ b/helpcontent2/source/text/sbasic/shared/03130500.xhp @@ -52,104 +52,103 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Shell Function [Runtime] +Shell Function [Runtime] /text/sbasic/shared/03130500.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Shell;functionShell Function [Runtime] - Starts another application and defines the respective window style, if necessary. -
- Syntax - ShellShell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync]) - Parameter - Pathname - Complete path and program name of the program that you want to start. - Windowstyle - Optional integer expression that specifies the style of the window that the program is executed in. The following values are possible: - - - - - - - 0 - - - The focus is on the hidden program window. - - - - - - 1 - - - The focus is on the program window in standard size. - - - - - 2 - - - The focus is on the minimized program window. - - - - - 3 - - - focus is on the maximized program window. - - - - - 4 - - - Standard size program window, without focus. - - - - - 6 - - - Minimized program window, focus remains on the active window. - - - - - 10 - - - Full-screen display. - - -
- Param - Any string expression that specifies the command line that want to pass. - bSync - If this value is set to true, the Shell command and all $[officename] tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false. - - - - - Example - Sub ExampleShellForWin - Shell("c:\windows\calc.exe",2) - end sub - +
+Shell function + +Shell Function [Runtime] +Starts another application and defines the respective window style, if necessary. +
+Syntax +Shell (Pathname As String[, Windowstyle As Integer][, Param As String][, bSync]) +Parameter +Pathname +Complete path and program name of the program that you want to start. +Windowstyle +Optional integer expression that specifies the style of the window that the program is executed in. The following values are possible: + + + +0 + + +The focus is on the hidden program window. + + + + +1 + + +The focus is on the program window in standard size. + + + + +2 + + +The focus is on the minimized program window. + + + + +3 + + +focus is on the maximized program window. + + + + +4 + + +Standard size program window, without focus. + + + + +6 + + +Minimized program window, focus remains on the active window. + + + + +10 + + +Full-screen display. + + +
+ +Param +Any string expression that specifies the command line that want to pass. +bSync +If this value is set to true, the Shell command and all $[officename] tasks wait until the shell process completes. If the value is set to false, the shell returns directly. The default value is false. + + + + +Example +Sub ExampleShellForWin + Shell("c:\windows\calc.exe",2) +end sub +
diff --git a/helpcontent2/source/text/sbasic/shared/03130600.xhp b/helpcontent2/source/text/sbasic/shared/03130600.xhp index 373cbca211..21a309b07f 100755 --- a/helpcontent2/source/text/sbasic/shared/03130600.xhp +++ b/helpcontent2/source/text/sbasic/shared/03130600.xhp @@ -52,38 +52,40 @@ * Contributor(s): _______________________________________ * * - ************************************************************************--> + ************************************************************************--> + + -Wait Statement [Runtime] +Wait Statement [Runtime] /text/sbasic/shared/03130600.xhp Sun Microsystems, Inc. -converted from old format - fpe +converted from old format - fpe - - -
- Wait;statementWait Statement [Runtime] - Interrupts the program execution for the amount of time that you specify in milliseconds. -
- Syntax: - Wait millisec - Parameters: - millisec: Numeric expression that contains the amount of time (in milliseconds) to wait before the program is executed. - - - Example: - Sub ExampleWait - Dim lTick As Long - lTick = GetSystemTicks() - wait 2000 - lTick = (GetSystemTicks() - lTick) - MsgBox "" & lTick & " Ticks" ,0,"The pause lasted" - End Sub - - +
+Wait statement + +Wait Statement [Runtime] +Interrupts the program execution for the amount of time that you specify in milliseconds. +
+Syntax: +Wait millisec +Parameters: + +millisec: Numeric expression that contains the amount of time (in milliseconds) to wait before the program is executed. + + +Example: +Sub ExampleWait +Dim lTick As Long +lTick = GetSystemTicks() +wait 2000 +lTick = (GetSystemTicks() - lTick) +MsgBox "" & lTick & " Ticks" ,0,"The pause lasted" +End Sub +