From 77cb682cd1b004e7247560e60f603a4bb0565b8d Mon Sep 17 00:00:00 2001 From: Christian Lohmaier Date: Mon, 13 Mar 2023 16:04:19 +0100 Subject: convert plain paragraphs with role="heading" → h MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit i.e. without child elements and also drop the language that was changed to implied in the dtd previously/defaults to en-US unless specified. This change doesn't affect translations, only the content of the paragraph/headings is extracted. done with: perl -CSD -pi -e 'BEGIN {$base = qr/role="heading"|level="(?\d+)"|(?id="[^"]+")/;} s#(?[^<]+)#$+{body}#g' (all permutations re order of attributes, and xml-lang="en-US" being optional / implied) Change-Id: I365a2bb983a3969af9390753fce7b7f3597c7b8b Reviewed-on: https://gerrit.libreoffice.org/c/help/+/148795 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/guide/access2base.xhp | 8 +++---- source/text/sbasic/guide/sample_code.xhp | 10 ++++---- source/text/sbasic/guide/translation.xhp | 4 ++-- source/text/sbasic/shared/01/06130000.xhp | 38 +++++++++++++++---------------- source/text/sbasic/shared/01/06130100.xhp | 12 +++++----- source/text/sbasic/shared/01/06130500.xhp | 10 ++++---- source/text/sbasic/shared/01010210.xhp | 8 +++---- source/text/sbasic/shared/01020500.xhp | 6 ++--- source/text/sbasic/shared/01030300.xhp | 10 ++++---- source/text/sbasic/shared/01050000.xhp | 16 ++++++------- source/text/sbasic/shared/01050100.xhp | 6 ++--- source/text/sbasic/shared/01050300.xhp | 10 ++++---- source/text/sbasic/shared/01170100.xhp | 2 +- source/text/sbasic/shared/01170103.xhp | 28 +++++++++++------------ source/text/sbasic/shared/02/11090000.xhp | 2 +- source/text/sbasic/shared/03010102.xhp | 2 +- source/text/sbasic/shared/03020302.xhp | 6 ++--- source/text/sbasic/shared/03020304.xhp | 6 ++--- source/text/sbasic/shared/03020305.xhp | 2 +- source/text/sbasic/shared/03020403.xhp | 2 +- source/text/sbasic/shared/03020406.xhp | 6 ++--- source/text/sbasic/shared/03020407.xhp | 6 ++--- source/text/sbasic/shared/03020409.xhp | 10 ++++---- source/text/sbasic/shared/03020412.xhp | 6 ++--- source/text/sbasic/shared/03020415.xhp | 8 +++---- source/text/sbasic/shared/03030103.xhp | 8 +++---- source/text/sbasic/shared/03030104.xhp | 8 +++---- source/text/sbasic/shared/03030106.xhp | 8 +++---- source/text/sbasic/shared/03030107.xhp | 8 +++---- source/text/sbasic/shared/03030108.xhp | 8 +++---- source/text/sbasic/shared/03030110.xhp | 2 +- source/text/sbasic/shared/03030111.xhp | 8 +++---- source/text/sbasic/shared/03030112.xhp | 8 +++---- source/text/sbasic/shared/03030113.xhp | 8 +++---- source/text/sbasic/shared/03030114.xhp | 8 +++---- source/text/sbasic/shared/03030115.xhp | 8 +++---- source/text/sbasic/shared/03030116.xhp | 8 +++---- source/text/sbasic/shared/03030120.xhp | 2 +- source/text/sbasic/shared/03030130.xhp | 2 +- source/text/sbasic/shared/03030201.xhp | 8 +++---- source/text/sbasic/shared/03030204.xhp | 8 +++---- source/text/sbasic/shared/03030205.xhp | 8 +++---- source/text/sbasic/shared/03030206.xhp | 8 +++---- source/text/sbasic/shared/03050100.xhp | 8 +++---- source/text/sbasic/shared/03050200.xhp | 8 +++---- source/text/sbasic/shared/03050300.xhp | 6 ++--- source/text/sbasic/shared/03060100.xhp | 6 ++--- source/text/sbasic/shared/03060200.xhp | 6 ++--- source/text/sbasic/shared/03060300.xhp | 6 ++--- source/text/sbasic/shared/03060400.xhp | 6 ++--- source/text/sbasic/shared/03060500.xhp | 6 ++--- source/text/sbasic/shared/03060600.xhp | 6 ++--- source/text/sbasic/shared/03070100.xhp | 6 ++--- source/text/sbasic/shared/03070200.xhp | 6 ++--- source/text/sbasic/shared/03070300.xhp | 6 ++--- source/text/sbasic/shared/03070400.xhp | 6 ++--- source/text/sbasic/shared/03070500.xhp | 6 ++--- source/text/sbasic/shared/03080201.xhp | 8 +++---- source/text/sbasic/shared/03080301.xhp | 6 ++--- source/text/sbasic/shared/03080302.xhp | 8 +++---- source/text/sbasic/shared/03080401.xhp | 8 +++---- source/text/sbasic/shared/03080601.xhp | 8 +++---- source/text/sbasic/shared/03080701.xhp | 8 +++---- source/text/sbasic/shared/03080801.xhp | 8 +++---- source/text/sbasic/shared/03080802.xhp | 8 +++---- source/text/sbasic/shared/03090302.xhp | 6 ++--- source/text/sbasic/shared/03090403.xhp | 6 ++--- source/text/sbasic/shared/03090404.xhp | 8 +++---- source/text/sbasic/shared/03090405.xhp | 6 ++--- source/text/sbasic/shared/03100060.xhp | 6 ++--- source/text/sbasic/shared/03100070.xhp | 6 ++--- source/text/sbasic/shared/03100300.xhp | 2 +- source/text/sbasic/shared/03101000.xhp | 10 ++++---- source/text/sbasic/shared/03102101.xhp | 2 +- source/text/sbasic/shared/03102200.xhp | 8 +++---- source/text/sbasic/shared/03102300.xhp | 8 +++---- source/text/sbasic/shared/03102400.xhp | 8 +++---- source/text/sbasic/shared/03102600.xhp | 8 +++---- source/text/sbasic/shared/03102700.xhp | 8 +++---- source/text/sbasic/shared/03103100.xhp | 6 ++--- source/text/sbasic/shared/03103400.xhp | 4 ++-- source/text/sbasic/shared/03103450.xhp | 4 ++-- source/text/sbasic/shared/03103500.xhp | 4 ++-- source/text/sbasic/shared/03103800.xhp | 4 ++-- source/text/sbasic/shared/03103900.xhp | 4 ++-- source/text/sbasic/shared/03104000.xhp | 4 ++-- source/text/sbasic/shared/03104100.xhp | 4 ++-- source/text/sbasic/shared/03104300.xhp | 6 ++--- source/text/sbasic/shared/03110100.xhp | 2 +- source/text/sbasic/shared/03120402.xhp | 8 +++---- source/text/sbasic/shared/03130700.xhp | 6 ++--- source/text/sbasic/shared/03130800.xhp | 8 +++---- source/text/sbasic/shared/03131000.xhp | 6 ++--- source/text/sbasic/shared/03131300.xhp | 6 ++--- source/text/sbasic/shared/03131400.xhp | 6 ++--- source/text/sbasic/shared/03132100.xhp | 8 +++---- source/text/sbasic/shared/03150000.xhp | 2 +- source/text/sbasic/shared/03150001.xhp | 2 +- source/text/sbasic/shared/05060700.xhp | 14 ++++++------ source/text/sbasic/shared/main0601.xhp | 4 ++-- source/text/sbasic/shared/vbasupport.xhp | 6 ++--- 101 files changed, 355 insertions(+), 355 deletions(-) (limited to 'source/text/sbasic') diff --git a/source/text/sbasic/guide/access2base.xhp b/source/text/sbasic/guide/access2base.xhp index afb44b345f..2294f26e21 100644 --- a/source/text/sbasic/guide/access2base.xhp +++ b/source/text/sbasic/guide/access2base.xhp @@ -40,13 +40,13 @@ Microsoft Access; Access2Base Access databases; run in Base - Access2Base - What is Access2Base? +

Access2Base

+

What is Access2Base?

Access2Base is a %PRODUCTNAME BASIC library of macros for (business or personal) application developers and advanced users. It is one of the libraries stored in "Application macros and dialogs". The functionalities provided by the implemented macros are all directly inspired by Microsoft Access. The macros are callable mainly from a %PRODUCTNAME Base application, but also from any %PRODUCTNAME document (Writer, Calc, ...) where access to data stored in a database makes sense. The API provided by Access2Base is intended to be more concise, intuitive and easy to learn than the standard UNO API (API = Application Programming Interface). The library is documented online on http://www.access2base.com. - The implemented macros include: +

The implemented macros include:

a simplified and extensible API for forms, dialogs and controls manipulations similar with the Microsoft Access object model, @@ -76,7 +76,7 @@ the support of both embedded forms and standalone (Writer) forms. - Compare Access2Base with Microsoft Access VBA +

Compare Access2Base with Microsoft Access VBA

REM Open a form ... OpenForm("myForm") diff --git a/source/text/sbasic/guide/sample_code.xhp b/source/text/sbasic/guide/sample_code.xhp index b6721f2dc8..9529087559 100644 --- a/source/text/sbasic/guide/sample_code.xhp +++ b/source/text/sbasic/guide/sample_code.xhp @@ -43,7 +43,7 @@ The following examples are for a new dialog called "Dialog1". Use the tools on the Toolbox bar in the dialog editor to create the dialog and add the following controls: a Check Box called "CheckBox1", a Label Field called "Label1", a Button called "CommandButton1", and a List Box called "ListBox1". Be consistent with uppercase and lowercase letter when you attach a control to an object variable. -Global Function for Loading Dialogs +

Global Function for Loading Dialogs

Function LoadDialog(Libname as String, DialogName as String, Optional oLibContainer) Dim oLib as Object ' com.sun.star.script.XLibraryContainer @@ -60,7 +60,7 @@ End Function LoadDialog function is stored in Tools.ModuleControls available from Application Macros and Dialogs. -Displaying a Dialog +

Displaying a Dialog

REM global definition of variables Dim oDialog1 AS Object @@ -72,7 +72,7 @@ oDialog1.Execute() End Sub -Read or Edit Properties of Controls in the Program +

Read or Edit Properties of Controls in the Program

Sub Sample1 With GlobalScope.Basiclibraries @@ -101,7 +101,7 @@ oDialog1.Execute() End Sub -Add an Entry to a ListBox +

Add an Entry to a ListBox

Sub AddEntry With GlobalScope.Basiclibraries @@ -116,7 +116,7 @@ oListbox.additem("New Item" & iCount,0) End Sub -Remove an Entry from a ListBox +

Remove an Entry from a ListBox

Sub RemoveEntry With GlobalScope.Basiclibraries diff --git a/source/text/sbasic/guide/translation.xhp b/source/text/sbasic/guide/translation.xhp index 38608ddea9..edf0563be3 100644 --- a/source/text/sbasic/guide/translation.xhp +++ b/source/text/sbasic/guide/translation.xhp @@ -48,7 +48,7 @@ The default language will be used as a source for all other language strings. Add UI languages for your dialog strings. -To enable localizable dialogs +

To enable localizable dialogs

In the Basic IDE dialog editor, open the Language toolbar choosing View - Toolbars - Language. @@ -76,7 +76,7 @@ Close the dialog or add additional languages. -To edit localizable controls in your dialog +

To edit localizable controls in your dialog

Once you have added the resources for localizable strings in your dialogs, you can select the current language from the Current Language listbox on the Language toolbar. diff --git a/source/text/sbasic/shared/01/06130000.xhp b/source/text/sbasic/shared/01/06130000.xhp index 56fc4ac1cc..c275d4ae93 100644 --- a/source/text/sbasic/shared/01/06130000.xhp +++ b/source/text/sbasic/shared/01/06130000.xhp @@ -33,48 +33,48 @@ macros; Basic IDE Basic IDE; macros this file needs more work, see i62546 -Macro +

Macro

Opens the Macro dialog, where you can create, edit, organize, and run $[officename] Basic macros. -Macro name +

Macro name

Displays the name of the selected macro. To create or to change the name of a macro, enter a name here. -Macro from / Save macro in +

Macro from / Save macro in

Lists the libraries and the modules where you can open or save your macros. To save a macro with a particular document, open the document, and then open this dialog. -Run / Save +

Run / Save

Runs or saves the current macro. -Assign +

Assign

Opens the Customize dialog, where you can assign the selected macro to a menu command, a toolbar, or an event. -Edit +

Edit

Starts the $[officename] Basic editor and opens the selected macro for editing. -New/Delete +

New/Delete

Creates a new macro, or deletes the selected macro. To create a new macro, select the "Standard" module in the Macro from list, and then click New. To delete a macro, select it, and then click Delete. -Organizer +

Organizer

Opens the Macro Organizer dialog, where you can add, edit, or delete existing macro modules, dialogs, and libraries. -Module/Dialog +

Module/Dialog

Lists the existing macros and dialogs. You can drag-and-drop a module or a dialog between libraries. To copy a dialog or a module, hold down the CommandCtrl key while you drag-and-drop. -Edit +

Edit

Opens the selected macro or dialog for editing. -New +

New

Creates a new module. Creates a new dialog. -Libraries tab page +

Libraries tab page

Lets you manage the macro libraries. -Location +

Location

Select the location containing the macro libraries that you want to organize. -Library +

Library

Lists the macro libraries in the chosen location. -Edit +

Edit

Opens the $[officename] Basic editor so that you can modify the selected library. -Password +

Password

Assigns or edits the password for the selected library. "Standard" libraries cannot have a password. -New +

New

Creates a new library. -Name +

Name

Enter a name for the new module, dialog, or library. -Append +

Append

Locate that $[officename] Basic library that you want to add to the current list, and then click Open. diff --git a/source/text/sbasic/shared/01/06130100.xhp b/source/text/sbasic/shared/01/06130100.xhp index 3ccfab7460..d8be2f189b 100644 --- a/source/text/sbasic/shared/01/06130100.xhp +++ b/source/text/sbasic/shared/01/06130100.xhp @@ -28,15 +28,15 @@ /text/sbasic/shared/01/06130100.xhp -Change Password +

Change Password

Protects the selected library with a password. You can enter a new password, or change the current password. -Old password -Password +

Old password

+

Password

Enter the current password for the selected library. -New password -Password +

New password

+

Password

Enter a new password for the selected library. -Confirm +

Confirm

Repeat the new password for the selected library.i66515 diff --git a/source/text/sbasic/shared/01/06130500.xhp b/source/text/sbasic/shared/01/06130500.xhp index d7d9786046..9b9ebc8115 100644 --- a/source/text/sbasic/shared/01/06130500.xhp +++ b/source/text/sbasic/shared/01/06130500.xhp @@ -34,16 +34,16 @@ libraries; adding inserting;Basic libraries
- Append libraries +

Append libraries

Locate that %PRODUCTNAME Basic library that you want to add to the current list, and then click Open. - File name: +

File name:

Enter a name or the path to the library that you want to append. You can also select a library from the list. - Options - Insert as reference (read-only) +

Options

+

Insert as reference (read-only)

Adds the selected library as a read-only file. The library is reloaded each time you start %PRODUCTNAME. - Replace existing libraries +

Replace existing libraries

Replaces a library that has the same name with the current library. diff --git a/source/text/sbasic/shared/01010210.xhp b/source/text/sbasic/shared/01010210.xhp index adc5175207..9848e4db7f 100644 --- a/source/text/sbasic/shared/01010210.xhp +++ b/source/text/sbasic/shared/01010210.xhp @@ -41,17 +41,17 @@ Some restrictions apply for the names of your public variables, subs, and functions. You must not use the same name as one of the modules of the same library. -What is a Sub? +

What is a Sub?

Sub is the short form of subroutine, that is used to handle a certain task within a program. Subs are used to split a task into individual procedures. Splitting a program into procedures and sub-procedures enhances readability and reduces the error-proneness. A sub possibly takes some arguments as parameters but does not return any values back to the calling sub or function, for example: DoSomethingWithTheValues(MyFirstValue,MySecondValue) -What is a Function? +

What is a Function?

A function is essentially a sub, which returns a value. You may use a function at the right side of a variable declaration, or at other places where you normally use values, for example: MySecondValue = myFunction(MyFirstValue) -Global and local variables +

Global and local variables

Global variables are valid for all subs and functions inside a module. They are declared at the beginning of a module before the first sub or function starts. Variables that you declare within a sub or function are valid only inside this sub or function. These variables override global variables with the same name and local variables with the same name coming from superordinate subs or functions. -Structuring +

Structuring

After separating your program into procedures and functions (Subs and Functions), you can save these procedures and functions as files for reuse in other projects. $[officename] Basic supports Modules and Libraries. Subs and functions are always contained in modules. You can define modules to be global or part of a document. Multiple modules can be combined to a library. You can copy or move subs, functions, modules and libraries from one file to another by using the Macro dialog. diff --git a/source/text/sbasic/shared/01020500.xhp b/source/text/sbasic/shared/01020500.xhp index 30e1bea828..cc74e6d89b 100644 --- a/source/text/sbasic/shared/01020500.xhp +++ b/source/text/sbasic/shared/01020500.xhp @@ -35,12 +35,12 @@ The following describes the basic use of libraries, modules and dialogs in $[officename] Basic. $[officename] Basic provides tools to help you structuring your projects. It supports various "units" which enable you to group individual SUBS and FUNCTIONS in a Basic project. -Libraries +

Libraries

Libraries serve as a tool for organizing modules, and can either be attached to a document or a template. When the document or a template is saved, all modules contained in the library are automatically saved as well. A library can contain up to 16,000 modules. -Modules +

Modules

A module contains SUBS and FUNCTIONS along with variable declarations. The length of the program that can be saved in a module is limited to 64 kB. If more space is required you can divide a $[officename] Basic project among several modules, and then save them in a single library. -Dialog Modules +

Dialog Modules

Dialog modules contain dialog definitions, including the dialog box properties, the properties of each dialog element and the events assigned. Since a dialog module can only contain a single dialog, they are often referred to as "dialogs".
diff --git a/source/text/sbasic/shared/01030300.xhp b/source/text/sbasic/shared/01030300.xhp index 0345d92504..3d29257b07 100644 --- a/source/text/sbasic/shared/01030300.xhp +++ b/source/text/sbasic/shared/01030300.xhp @@ -39,25 +39,25 @@ Call Stack window Debugging a Basic Program
-Breakpoints and Single Step Execution +

Breakpoints and Single Step Execution

You can check each line in your Basic program for errors using single step execution. Errors are easily traced since you can immediately see the result of each step. A pointer in the breakpoint column of the Editor indicates the current line. You can also set a breakpoint if you want to force the program to be interrupted at a specific position. Double-click in the breakpoint column at the left of the Editor window to toggle a breakpoint at the corresponding line. When the program reaches a breakpoint, the program execution is interrupted. The single step execution using the Single Step icon causes the program to branch into procedures and functions. The procedure step execution using the Procedure Step icon causes the program to skip over procedures and functions as a single step. -Properties of a Breakpoint +

Properties of a Breakpoint

The properties of a breakpoint are available through its context menu by right-clicking the breakpoint in the breakpoint column. You can activate and deactivate a breakpoint by selecting Active from its context menu. When a breakpoint is deactivated, it does not interrupt the program execution. Select Properties from the context menu of a breakpoint or select Breakpoints from the context menu of the breakpoint column to call the Breakpoints dialog where you can specify other breakpoint options. The list displays all breakpoints with the corresponding line number in the source code. You can activate or deactivate a selected breakpoint by checking or clearing the Active box. The Pass Count specifies the number of times the breakpoint can be passed over before the program is interrupted. If you enter 0 (default setting) the program is always interrupted as soon as a breakpoint is encountered. Click Delete to remove the breakpoint from the program. -Observing the Value of Variables +

Observing the Value of Variables

You can monitor the values of a variable by adding it to the Watch window. To add a variable to the list of watched variables, type the variable name in the Watch text box and press Enter. The values of variables are only displayed if they are in scope. Variables that are not defined at the current source code location display ("Out of Scope") instead of a value. You can also include arrays in the Watch window. If you enter the name of an array variable without an index value in the Watch text box, the content of the entire array is displayed. -If you rest the mouse over a predefined variable in the Editor at run-time, the content of the variable is displayed in a pop-up box.The Call Stack Window +If you rest the mouse over a predefined variable in the Editor at run-time, the content of the variable is displayed in a pop-up box.

The Call Stack Window

Provides an overview of the call hierarchy of procedures and functions. You can determine which procedures and functions called which other procedures and functions at the current point in the source code. -List of Run-Time Errors +

List of Run-Time Errors

diff --git a/source/text/sbasic/shared/01050000.xhp b/source/text/sbasic/shared/01050000.xhp index cd8b5573ce..1a0383531e 100644 --- a/source/text/sbasic/shared/01050000.xhp +++ b/source/text/sbasic/shared/01050000.xhp @@ -42,24 +42,24 @@ -Commands From the Context menu of the Module Tabs -Insert +

Commands From the Context menu of the Module Tabs

+

Insert

-Module +

Module

Inserts a new module into the current library. -Dialog +

Dialog

Inserts a new dialog into the current library. -Delete +

Delete

Deletes the selected module. -Rename +

Rename

Renames the current module in place. -Hide +

Hide

Hides the current module. -Modules +

Modules

Opens the Macro Organizer dialog. diff --git a/source/text/sbasic/shared/01050100.xhp b/source/text/sbasic/shared/01050100.xhp index 572fa6619d..473f6b874d 100644 --- a/source/text/sbasic/shared/01050100.xhp +++ b/source/text/sbasic/shared/01050100.xhp @@ -35,10 +35,10 @@ The Watch window allows you to observe the value of variables during the execution of a program. Define the variable in the Watch text box. Click on Enable Watch to add the variable to the list box and to display its values. -Watch +

Watch

Enter the name of the variable whose value is to be monitored. -Remove Watch +

Remove Watch

Removes the selected variable from the list of watched variables. @@ -54,7 +54,7 @@
-Editing the Value of a Watched Variable +

Editing the Value of a Watched Variable

Displays the list of watched variables. Click twice with a short pause in between on an entry to edit its value. The new value will be taken as the variable's value for the program. diff --git a/source/text/sbasic/shared/01050300.xhp b/source/text/sbasic/shared/01050300.xhp index 24001568a1..3de2a3de14 100644 --- a/source/text/sbasic/shared/01050300.xhp +++ b/source/text/sbasic/shared/01050300.xhp @@ -39,20 +39,20 @@ Specifies the options for breakpoints. -Breakpoints +

Breakpoints

Enter the line number for a new breakpoint, then click New. -Active +

Active

Activates or deactivates the current breakpoint. -Pass Count +

Pass Count

Specify the number of loops to perform before the breakpoint takes effect. -New +

New

Creates a breakpoint on the line number specified. -Delete +

Delete

Deletes the selected breakpoint. diff --git a/source/text/sbasic/shared/01170100.xhp b/source/text/sbasic/shared/01170100.xhp index 35c5c02926..79cdf54be8 100644 --- a/source/text/sbasic/shared/01170100.xhp +++ b/source/text/sbasic/shared/01170100.xhp @@ -38,7 +38,7 @@ Control and Dialog Properties Specifies the properties of the selected dialog or control. You must be in the design mode to be able to use this command. -Entering Data in the Properties Dialog +

Entering Data in the Properties Dialog

The following key combinations apply to enter data in multiline fields or combo boxes of the Properties dialog: diff --git a/source/text/sbasic/shared/01170103.xhp b/source/text/sbasic/shared/01170103.xhp index 3ab5d1b940..f27610b37a 100644 --- a/source/text/sbasic/shared/01170103.xhp +++ b/source/text/sbasic/shared/01170103.xhp @@ -34,33 +34,33 @@ Events Define event assignments for the selected control or dialog. The available events depend on the type of control selected. -When receiving focus +

When receiving focus

This event takes place if a control receives the focus. -When losing focus +

When losing focus

This event takes place if a control loses the focus. -Key pressed +

Key pressed

This event occurs when the user presses any key while the control has the focus. -Key released +

Key released

This event occurs when the user releases a key while the control has the focus. -Modified +

Modified

This event takes place, when the control loses the focus and the contents of the control were changed since it lost the focus. -Text modified +

Text modified

This event takes place if you enter or modify a text in an input field. -Item status changed +

Item status changed

This event takes place if the status of the control field is changed, for example, from checked to unchecked. -Mouse inside +

Mouse inside

This event takes place when the mouse enters the control. -Mouse moved while key pressed +

Mouse moved while key pressed

This event takes place when the mouse is dragged while a key is pressed. -Mouse moved +

Mouse moved

This event takes place when the mouse moves over the control. -Mouse button pressed +

Mouse button pressed

This event takes place when the mouse button is pressed while the mouse pointer is on the control. -Mouse button released +

Mouse button released

This event takes place when the mouse button is released while the mouse pointer is on the control. -Mouse outside +

Mouse outside

This event takes place when the mouse leaves the control. -While adjusting +

While adjusting

This event takes place when a scrollbar is being dragged. diff --git a/source/text/sbasic/shared/02/11090000.xhp b/source/text/sbasic/shared/02/11090000.xhp index fd12cdd830..6a3c2ce033 100644 --- a/source/text/sbasic/shared/02/11090000.xhp +++ b/source/text/sbasic/shared/02/11090000.xhp @@ -55,7 +55,7 @@ -Window Area +

Window Area

Displays a hierarchical view of the current $[officename] macro libraries, modules, and dialogs. To display the contents of an item in the window, double click its name. diff --git a/source/text/sbasic/shared/03010102.xhp b/source/text/sbasic/shared/03010102.xhp index ed00a4462d..b6e110aeb2 100644 --- a/source/text/sbasic/shared/03010102.xhp +++ b/source/text/sbasic/shared/03010102.xhp @@ -141,7 +141,7 @@ -Example: +

Example:

Sub ExampleMsgBox Dim sVar As Integer diff --git a/source/text/sbasic/shared/03020302.xhp b/source/text/sbasic/shared/03020302.xhp index 1db86f3e3d..ad8206a8d7 100644 --- a/source/text/sbasic/shared/03020302.xhp +++ b/source/text/sbasic/shared/03020302.xhp @@ -36,13 +36,13 @@ Loc Function Returns the current position in an open file. -Syntax: +

Syntax:

Loc(FileNumber) -Return value: +

Return value:

Long -Parameters: +

Parameters:

FileNumber: Any numeric expression that contains the file number that is set by the Open statement for the respective file. If the Loc function is used for an open random access file, it returns the number of the last record that was last read or written. diff --git a/source/text/sbasic/shared/03020304.xhp b/source/text/sbasic/shared/03020304.xhp index 01352b21df..cc00797a3c 100644 --- a/source/text/sbasic/shared/03020304.xhp +++ b/source/text/sbasic/shared/03020304.xhp @@ -39,13 +39,13 @@ For random access files, the Seek function returns the number of the next record to be read. For all other files, the function returns the byte position at which the next operation is to occur. See also: Open, Seek. -Syntax: +

Syntax:

Seek (FileNumber) -Return value: +

Return value:

Long -Parameters: +

Parameters:

FileNumber: The data channel number used in the Open statement. diff --git a/source/text/sbasic/shared/03020305.xhp b/source/text/sbasic/shared/03020305.xhp index 875a125742..3caead6222 100644 --- a/source/text/sbasic/shared/03020305.xhp +++ b/source/text/sbasic/shared/03020305.xhp @@ -43,7 +43,7 @@ Seek [#]filePos, {filePos|recordNum}
-Parameters: +

Parameters:

fileNum: The data channel number used in the Open statement. diff --git a/source/text/sbasic/shared/03020403.xhp b/source/text/sbasic/shared/03020403.xhp index 0929218d7c..3a876a96f0 100644 --- a/source/text/sbasic/shared/03020403.xhp +++ b/source/text/sbasic/shared/03020403.xhp @@ -43,7 +43,7 @@ CurDir [(Text As String)] -Return value: +

Return value:

String diff --git a/source/text/sbasic/shared/03020406.xhp b/source/text/sbasic/shared/03020406.xhp index 04b32654dd..45f31916a9 100644 --- a/source/text/sbasic/shared/03020406.xhp +++ b/source/text/sbasic/shared/03020406.xhp @@ -38,12 +38,12 @@ Copies a file. -Syntax: +

Syntax:

FileCopy Source As String, Destination As String -Parameters: +

Parameters:

Source: Any string expression that specifies the name of the file that you want to copy. The expression can contain optional path and drive information. If you want, you can enter a path in URL notation. Destination: Any string expression that specifies where you want to copy the source file to. The expression can contain the destination drive, the path, and file name, or the path in URL notation. You can only use the FileCopy statement to copy files that are not opened. @@ -51,7 +51,7 @@ -Example: +

Example:

Sub ExampleFileCopy FileCopy "c:\autoexec.bat", "c:\Temp\Autoexec.sav" diff --git a/source/text/sbasic/shared/03020407.xhp b/source/text/sbasic/shared/03020407.xhp index 98544abd44..1455280d7f 100644 --- a/source/text/sbasic/shared/03020407.xhp +++ b/source/text/sbasic/shared/03020407.xhp @@ -38,19 +38,19 @@ Returns a string that contains the date and the time that a file was created or last modified. -Syntax: +

Syntax:

FileDateTime (Text As String) -Parameters: +

Parameters:

Text: Any string expression that contains an unambiguous (no wildcards) file specification. You can also use URL notation. This function determines the exact time of creation or last modification of a file, returned in the format "MM.DD.YYYY HH.MM.SS". -Example: +

Example:

Sub ExampleFileDateTime MsgBox FileDateTime("C:\autoexec.bat") diff --git a/source/text/sbasic/shared/03020409.xhp b/source/text/sbasic/shared/03020409.xhp index 9be37bdb17..313c57f7c7 100644 --- a/source/text/sbasic/shared/03020409.xhp +++ b/source/text/sbasic/shared/03020409.xhp @@ -38,22 +38,22 @@ Returns a bit pattern that identifies the file type or the name of a volume or a directory. -Syntax: +

Syntax:

GetAttr (Text As String) -Return value: +

Return value:

Integer -Parameters: +

Parameters:

Text: Any string expression that contains an unambiguous file specification. You can also use URL notation. This function determines the attributes for a specified file and returns the bit pattern that can help you to identify the following file attributes: -Value +

Value

@@ -150,7 +150,7 @@ If you want to know if a bit of the attribute byte is set, use the following query method: -Example: +

Example:

Sub ExampleSetGetAttr On Error GoTo ErrorHandler ' Define target for error handler diff --git a/source/text/sbasic/shared/03020412.xhp b/source/text/sbasic/shared/03020412.xhp index 04d1795b26..bc3750a689 100644 --- a/source/text/sbasic/shared/03020412.xhp +++ b/source/text/sbasic/shared/03020412.xhp @@ -38,15 +38,15 @@ Renames an existing file or directory. -Syntax: +

Syntax:

Name OldName As String As NewName As String -Parameters: +

Parameters:

OldName, NewName: Any string expression that specifies the file name, including the path. You can also use URL notation.see #i61074 -Example: +

Example:

Sub ExampleReName On Error GoTo Error diff --git a/source/text/sbasic/shared/03020415.xhp b/source/text/sbasic/shared/03020415.xhp index 8ac875c185..2b0684a17f 100644 --- a/source/text/sbasic/shared/03020415.xhp +++ b/source/text/sbasic/shared/03020415.xhp @@ -38,20 +38,20 @@ Determines if a file or a directory is available on the data medium. -Syntax: +

Syntax:

FileExists(FileName As String | DirectoryName As String) -Return value: +

Return value:

Bool -Parameters: +

Parameters:

FileName | DirectoryName: Any string expression that contains an unambiguous file specification. You can also use URL notation. -Example: +

Example:

Sub ExampleFileExists MsgBox FileExists("C:\autoexec.bat") diff --git a/source/text/sbasic/shared/03030103.xhp b/source/text/sbasic/shared/03030103.xhp index d2e6baab96..83fe73f04d 100644 --- a/source/text/sbasic/shared/03030103.xhp +++ b/source/text/sbasic/shared/03030103.xhp @@ -35,13 +35,13 @@ Day Function Returns a value that represents the day of the month based on a serial date number generated by DateSerial or DateValue. -Syntax: +

Syntax:

Day (Number) -Return value: +

Return value:

Integer -Parameters: +

Parameters:

Number: A numeric expression that contains a serial date number from which you can determine the day of the month. This function is basically the opposite of the DateSerial function, returning the day of the month from a serial date number generated by the DateSerial or the DateValue function. For example, the expression @@ -51,7 +51,7 @@ returns the value 20. -Example: +

Example:

Sub ExampleDay Print "Day " & Day(DateSerial(1994, 12, 20)) & " of the month" diff --git a/source/text/sbasic/shared/03030104.xhp b/source/text/sbasic/shared/03030104.xhp index b1d523ce05..c89e726cab 100644 --- a/source/text/sbasic/shared/03030104.xhp +++ b/source/text/sbasic/shared/03030104.xhp @@ -35,13 +35,13 @@ Month Function Returns the month of a year from a serial date that is generated by the DateSerial or the DateValue function. -Syntax: +

Syntax:

Month (Number) -Return value: +

Return value:

Integer -Parameters: +

Parameters:

Number: Numeric expression that contains the serial date number that is used to determine the month of the year. This function is the opposite of the DateSerial function. It returns the month in the year that corresponds to the serial date that is generated by DateSerial or DateValue. For example, the expression @@ -51,7 +51,7 @@ returns the value 12. -Example: +

Example:

Sub ExampleMonth MsgBox "" & Month(Now) ,64,"The current month" diff --git a/source/text/sbasic/shared/03030106.xhp b/source/text/sbasic/shared/03030106.xhp index 57b223b839..9ecaaac221 100644 --- a/source/text/sbasic/shared/03030106.xhp +++ b/source/text/sbasic/shared/03030106.xhp @@ -35,13 +35,13 @@ Year Function Returns the year from a serial date number that is generated by the DateSerial or the DateValue function. -Syntax: +

Syntax:

Year (Number) -Return value: +

Return value:

Integer -Parameters: +

Parameters:

Number: Integer expression that contains the serial date number that is used to calculate the year. This function is the opposite of the DateSerial function, and returns the year of a serial date. For example, the expression: @@ -51,7 +51,7 @@ returns the value 1994. -Example: +

Example:

Sub ExampleYear MsgBox "" & Year(Now) ,64,"Current year" diff --git a/source/text/sbasic/shared/03030107.xhp b/source/text/sbasic/shared/03030107.xhp index 2d61b406a0..412782d4b9 100644 --- a/source/text/sbasic/shared/03030107.xhp +++ b/source/text/sbasic/shared/03030107.xhp @@ -38,20 +38,20 @@ Years less than 100 and greater than 9999 are supported since %PRODUCTNAME 5.4. -Syntax: +

Syntax:

CDateToIso(Number) -Return value: +

Return value:

String -Parameters: +

Parameters:

Number: Integer that contains the serial date number. -Example: +

Example:

Sub ExampleCDateToIso MsgBox "" & CDateToIso(Now) ,64,"ISO Date" diff --git a/source/text/sbasic/shared/03030108.xhp b/source/text/sbasic/shared/03030108.xhp index 6e1833c6f0..599d6c3297 100644 --- a/source/text/sbasic/shared/03030108.xhp +++ b/source/text/sbasic/shared/03030108.xhp @@ -39,18 +39,18 @@ When converting a date serial number to a printable string, for example for the Print or MsgBox command, the locale's default calendar is used and at that 1582-10-15 cutover date may switch to the Julian calendar, which can result in a different date being displayed than expected. Use the CDateToIso Function to convert such date number to a string representation in the proleptic Gregorian calendar. The YYYY-MM-DD format with separators is supported since %PRODUCTNAME 5.3.4. Years less than 100 or greater than 9999 are accepted since %PRODUCTNAME 5.4 if not in VBA compatibility mode. -Syntax: +

Syntax:

CDateFromIso(String) -Return value: +

Return value:

Internal date number -Parameters: +

Parameters:

String: A string that contains a date in ISO format. -Example: +

Example:

dateval = CDateFromIso("20021231") dateval = CDateFromIso("2002-12-31") diff --git a/source/text/sbasic/shared/03030110.xhp b/source/text/sbasic/shared/03030110.xhp index f37c7d949e..7a63468811 100644 --- a/source/text/sbasic/shared/03030110.xhp +++ b/source/text/sbasic/shared/03030110.xhp @@ -43,7 +43,7 @@ DateAdd (interval As String, number As Long, date As Date) As Date -Return value: +

Return value:

A Variant containing a date. diff --git a/source/text/sbasic/shared/03030111.xhp b/source/text/sbasic/shared/03030111.xhp index ea12a8671f..c2e84e78b9 100644 --- a/source/text/sbasic/shared/03030111.xhp +++ b/source/text/sbasic/shared/03030111.xhp @@ -38,20 +38,20 @@ Returns the date as a UNO com.sun.star.util.Date struct. -Syntax: +

Syntax:

CDateToUnoDate(aDate) -Return value: +

Return value:

com.sun.star.util.Date -Parameters: +

Parameters:

aDate: Date to convert -Example: +

Example:

Sub ExampleCDateToUnoDate aDatabaseRow.updateDate(3, CDateToUnoDate(Now)) diff --git a/source/text/sbasic/shared/03030112.xhp b/source/text/sbasic/shared/03030112.xhp index 58f716f415..c60ce1e750 100644 --- a/source/text/sbasic/shared/03030112.xhp +++ b/source/text/sbasic/shared/03030112.xhp @@ -38,20 +38,20 @@ Converts a UNO com.sun.star.util.Date struct to a Date value. -Syntax: +

Syntax:

CDateFromUnoDate(aDate) -Return value: +

Return value:

Date -Parameters: +

Parameters:

aDate: Date to convert -Example: +

Example:

Sub ExampleCDateFromUnoDate MsgBox(CDateFromUnoDate(aDatabaseRow.getDate(3))) diff --git a/source/text/sbasic/shared/03030113.xhp b/source/text/sbasic/shared/03030113.xhp index ee6c8e2f10..f170cb54ad 100644 --- a/source/text/sbasic/shared/03030113.xhp +++ b/source/text/sbasic/shared/03030113.xhp @@ -38,20 +38,20 @@ Returns the time part of the date as a UNO com.sun.star.util.Time struct. -Syntax: +

Syntax:

CDateToUnoTime(aDate) -Return value: +

Return value:

com.sun.star.util.Time -Parameters: +

Parameters:

aDate: Date value to convert -Example: +

Example:

Sub ExampleCDateToUnoTime aDatabaseRow.updateTime(3, CDateToUnoTime(Now)) diff --git a/source/text/sbasic/shared/03030114.xhp b/source/text/sbasic/shared/03030114.xhp index da27f5d497..cc8ade33e3 100644 --- a/source/text/sbasic/shared/03030114.xhp +++ b/source/text/sbasic/shared/03030114.xhp @@ -38,20 +38,20 @@ Converts a UNO com.sun.star.util.Time struct to a Date value. -Syntax: +

Syntax:

CDateFromUnoTime(aTime) -Return value: +

Return value:

Date -Parameters: +

Parameters:

aTime: Time to convert -Example: +

Example:

Sub ExampleCDateFromUnoTime MsgBox(CDateFromUnoTime(aDatabaseRow.getTime(3))) diff --git a/source/text/sbasic/shared/03030115.xhp b/source/text/sbasic/shared/03030115.xhp index 95ae533275..764e67436e 100644 --- a/source/text/sbasic/shared/03030115.xhp +++ b/source/text/sbasic/shared/03030115.xhp @@ -38,20 +38,20 @@ Returns the time part of the date as a UNO com.sun.star.util.DateTime struct. -Syntax: +

Syntax:

CDateToUnoDateTime(aDate) -Return value: +

Return value:

com.sun.star.util.DateTime -Parameters: +

Parameters:

aDate: Date value to convert -Example: +

Example:

Sub ExampleCDateToUnoDateTime aDatabaseRow.updateTimestamp(3, CDateToUnoDateTime(Now)) diff --git a/source/text/sbasic/shared/03030116.xhp b/source/text/sbasic/shared/03030116.xhp index 5adf14bda3..1319ba55a6 100644 --- a/source/text/sbasic/shared/03030116.xhp +++ b/source/text/sbasic/shared/03030116.xhp @@ -38,20 +38,20 @@ Converts a UNO com.sun.star.util.DateTime struct to a Date value. -Syntax: +

Syntax:

CDateFromUnoDateTime(aDateTime) -Return value: +

Return value:

Date -Parameters: +

Parameters:

aDateTime: DateTime to convert -Example: +

Example:

Sub ExampleCDateFromUnoDateTime MsgBox(CDateFromUnoDateTime(aDatabaseRow.getTimestamp(3))) diff --git a/source/text/sbasic/shared/03030120.xhp b/source/text/sbasic/shared/03030120.xhp index 04f6fd4dea..75bf80e555 100644 --- a/source/text/sbasic/shared/03030120.xhp +++ b/source/text/sbasic/shared/03030120.xhp @@ -41,7 +41,7 @@ DateDiff (interval As String, date1 As Date, date2 As Date [, firstDayOfWeek As Integer [, firstWeekOfYear As Integer]]) As Double -Return value: +

Return value:

A number. diff --git a/source/text/sbasic/shared/03030130.xhp b/source/text/sbasic/shared/03030130.xhp index 5934bb13b2..2ab5e915a0 100644 --- a/source/text/sbasic/shared/03030130.xhp +++ b/source/text/sbasic/shared/03030130.xhp @@ -42,7 +42,7 @@ DatePart (interval As String, date As Date [, firstDayOfWeek As Integer [, firstWeekOfYear As Integer]]) As Long
-Return value: +

Return value:

The extracted part for the given date. diff --git a/source/text/sbasic/shared/03030201.xhp b/source/text/sbasic/shared/03030201.xhp index 97bc08628f..95bdfdda28 100644 --- a/source/text/sbasic/shared/03030201.xhp +++ b/source/text/sbasic/shared/03030201.xhp @@ -32,13 +32,13 @@ Hour Function Returns the hour from a time value that is generated by the TimeSerial or the TimeValue function. - Syntax: +

Syntax:

Hour (Number) - Return value: +

Return value:

Integer - Parameters: +

Parameters:

Number: Numeric expression that contains the serial time value that is used to return the hour value. This function is the opposite of the TimeSerial function. It returns an integer value that represents the hour from a time value that is generated by the TimeSerial or the TimeValue function. For example, the expression @@ -46,7 +46,7 @@ returns the value 12. - Example: +

Example:

Sub ExampleHour Print "The current hour is " & Hour( Now ) diff --git a/source/text/sbasic/shared/03030204.xhp b/source/text/sbasic/shared/03030204.xhp index 4e8a65257d..db540dd177 100644 --- a/source/text/sbasic/shared/03030204.xhp +++ b/source/text/sbasic/shared/03030204.xhp @@ -38,15 +38,15 @@ Returns an integer that represents the seconds of the serial time number that is generated by the TimeSerial or the TimeValue function. -Syntax: +

Syntax:

Second (Number) -Return value: +

Return value:

Integer -Parameters: +

Parameters:

Number: Numeric expression that contains the serial time number that is used to calculate the number of seconds. This function is the opposite of the TimeSerial function. It returns the seconds of a serial time value that is generated by the TimeSerial or TimeValue functions. For example, the expression: Print Second(TimeSerial(12,30,41)) @@ -54,7 +54,7 @@ -Example: +

Example:

Sub ExampleSecond MsgBox "The exact second of the current time is "& Second( Now ) diff --git a/source/text/sbasic/shared/03030205.xhp b/source/text/sbasic/shared/03030205.xhp index 376c632aa9..dfc39113ad 100644 --- a/source/text/sbasic/shared/03030205.xhp +++ b/source/text/sbasic/shared/03030205.xhp @@ -38,15 +38,15 @@ Calculates a serial time value for the specified hour, minute, and second parameters that are passed as numeric value. You can then use this value to calculate the difference between times. -Syntax: +

Syntax:

TimeSerial (hour, minute, second) -Return value: +

Return value:

Date -Parameters: +

Parameters:

hour: Any integer expression that indicates the hour of the time that is used to determine the serial time value. Valid values: 0-23. minute: Any integer expression that indicates the minute of the time that is used to determine the serial time value. In general, use values between 0 and 59. However, you can also use values that lie outside of this range, where the number of minutes influence the hour value. second: Any integer expression that indicates the second of the time that is used to determine the serial time value. In general, you can use values between 0 and 59. However, you can also use values that lie outside of this range, where the number seconds influences the minute value. @@ -61,7 +61,7 @@ -Example: +

Example:

Sub ExampleTimeSerial Dim dDate As Double, sDate As String diff --git a/source/text/sbasic/shared/03030206.xhp b/source/text/sbasic/shared/03030206.xhp index cc978f83a3..14356a07f0 100644 --- a/source/text/sbasic/shared/03030206.xhp +++ b/source/text/sbasic/shared/03030206.xhp @@ -38,15 +38,15 @@ Calculates a serial time value from the specified hour, minute, and second - parameters passed as strings - that represents the time in a single numeric value. This value can be used to calculate the difference between times. -Syntax: +

Syntax:

TimeValue (Text As String) -Return value: +

Return value:

Date -Parameters: +

Parameters:

Text: Any string expression that contains the time that you want to calculate in the format "HH:MM:SS". Use the TimeValue function to convert any time into a single value, so that you can calculate time differences. This TimeValue function returns the type Variant with VarType 7 (Date), and stores this value internally as a double-precision number between 0 and 0.9999999999. @@ -56,7 +56,7 @@ -Example: +

Example:

Sub ExampleTimerValue Dim daDT As Date diff --git a/source/text/sbasic/shared/03050100.xhp b/source/text/sbasic/shared/03050100.xhp index 0bdf4ba66b..a618710188 100644 --- a/source/text/sbasic/shared/03050100.xhp +++ b/source/text/sbasic/shared/03050100.xhp @@ -36,18 +36,18 @@ Returns the line number where an error occurred during program execution. -Syntax: +

Syntax:

Erl -Return value: +

Return value:

Integer -Parameters: +

Parameters:

The Erl function only returns a line number, and not a line label. -Example: +

Example:

Sub ExampleError On Error GoTo ErrorHandler ' Set up error handler diff --git a/source/text/sbasic/shared/03050200.xhp b/source/text/sbasic/shared/03050200.xhp index 9a31d45604..fe2d8b64a7 100644 --- a/source/text/sbasic/shared/03050200.xhp +++ b/source/text/sbasic/shared/03050200.xhp @@ -35,15 +35,15 @@ Err Function Returns an error code that identifies the error that occurred during program execution. -Syntax: +

Syntax:

Err -Return value: +

Return value:

Integer -Parameters: +

Parameters:

The Err function is used in error-handling routines to determine the error and the corrective action. -Example: +

Example:

Sub ExampleError On Error Goto ErrorHandler REM Set up error handler diff --git a/source/text/sbasic/shared/03050300.xhp b/source/text/sbasic/shared/03050300.xhp index 3cfe1a6177..04d8bd0735 100644 --- a/source/text/sbasic/shared/03050300.xhp +++ b/source/text/sbasic/shared/03050300.xhp @@ -33,15 +33,15 @@ Error Function Returns the error message that corresponds to a value or raises a given error context. -Syntax: +

Syntax:

Error Error(expression) Error err_code -Return value: +

Return value:

String or raised error context -Parameters: +

Parameters:

If no argument is provided, the Error function returns the error message of the most recent error that occurred during program execution. expression: Any numeric expression whose error code can be mapped to an existing error message. An empty string is returned if the error code does not exist. diff --git a/source/text/sbasic/shared/03060100.xhp b/source/text/sbasic/shared/03060100.xhp index b0218f434d..77867817d7 100644 --- a/source/text/sbasic/shared/03060100.xhp +++ b/source/text/sbasic/shared/03060100.xhp @@ -38,19 +38,19 @@ Logically combines two expressions. -Syntax: +

Syntax:

Result = Expression1 And Expression2 -Parameters: +

Parameters:

Result: Any numeric variable that records the result of the combination. Expression1, Expression2: Any expressions that you want to combine. Boolean expressions combined with AND only return the value True if both expressions evaluate to True: True AND True returns True; for all other combinations the result is False. The AND operator also performs a bitwise comparison of identically positioned bits in two numeric expressions. -Example: +

Example:

Sub ExampleAnd Dim A As Variant, B As Variant, C As Variant, D As Variant diff --git a/source/text/sbasic/shared/03060200.xhp b/source/text/sbasic/shared/03060200.xhp index abaee101e4..dceac3fa4c 100644 --- a/source/text/sbasic/shared/03060200.xhp +++ b/source/text/sbasic/shared/03060200.xhp @@ -38,18 +38,18 @@ Calculates the logical equivalence of two expressions. -Syntax: +

Syntax:

Result = Expression1 Eqv Expression2 -Parameters: +

Parameters:

Result: Any numeric variable that contains the result of the comparison. Expression1, Expression2: Any expressions that you want to compare. When testing for equivalence between Boolean expressions, the result is True if both expressions are either True or False. In a bit-wise comparison, the Eqv operator only sets the corresponding bit in the result if a bit is set in both expressions, or in neither expression. -Example: +

Example:

Sub ExampleEqv Dim A As Variant, B As Variant, C As Variant, D As Variantsee #i38265 diff --git a/source/text/sbasic/shared/03060300.xhp b/source/text/sbasic/shared/03060300.xhp index 1655168c40..6f192c92f5 100644 --- a/source/text/sbasic/shared/03060300.xhp +++ b/source/text/sbasic/shared/03060300.xhp @@ -38,18 +38,18 @@ Performs a logical implication on two expressions. -Syntax: +

Syntax:

Result = Expression1 Imp Expression2 -Parameters: +

Parameters:

Result: Any numeric variable that contains the result of the implication. Expression1, Expression2: Any expressions that you want to evaluate with the Imp operator. If you use the Imp operator in Boolean expressions, False is only returned if the first expression evaluates to True and the second expression to False. If you use the Imp operator in bit expressions, a bit is deleted from the result if the corresponding bit is set in the first expression and the corresponding bit is deleted in the second expression. -Example: +

Example:

Sub ExampleImp Dim A As Variant, B As Variant, C As Variant, D As Variant diff --git a/source/text/sbasic/shared/03060400.xhp b/source/text/sbasic/shared/03060400.xhp index c078b2b2f6..47065ad178 100644 --- a/source/text/sbasic/shared/03060400.xhp +++ b/source/text/sbasic/shared/03060400.xhp @@ -38,18 +38,18 @@ Negates an expression by inverting the bit values. -Syntax: +

Syntax:

Result = Not Expression -Parameters: +

Parameters:

Result: Any numeric variable that contains the result of the negation. Expression: Any expression that you want to negate. When a Boolean expression is negated, the value True changes to False, and the value False changes to True. In a bitwise negation each individual bit is inverted. -Example: +

Example:

Sub ExampleNot Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant diff --git a/source/text/sbasic/shared/03060500.xhp b/source/text/sbasic/shared/03060500.xhp index 0572801402..8fec89c1d3 100644 --- a/source/text/sbasic/shared/03060500.xhp +++ b/source/text/sbasic/shared/03060500.xhp @@ -38,18 +38,18 @@ Performs a logical OR disjunction on two expressions. -Syntax: +

Syntax:

Result = Expression1 Or Expression2 -Parameters: +

Parameters:

Result: Any numeric variable that contains the result of the disjunction. Expression1, Expression2: Any numeric expressions that you want to compare. A logical OR disjunction of two Boolean expressions returns the value True if at least one comparison expression is True. A bit-wise comparison sets a bit in the result if the corresponding bit is set in at least one of the two expressions. -Example: +

Example:

Sub ExampleOr Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant diff --git a/source/text/sbasic/shared/03060600.xhp b/source/text/sbasic/shared/03060600.xhp index a52fff6179..0081da07ee 100644 --- a/source/text/sbasic/shared/03060600.xhp +++ b/source/text/sbasic/shared/03060600.xhp @@ -38,18 +38,18 @@ Performs a logical Exclusive-Or combination of two expressions. -Syntax: +

Syntax:

Result = Expression1 XOR Expression2 -Parameters: +

Parameters:

Result: Any numeric variable that contains the result of the combination. Expression1, Expression2: Any numeric expressions that you want to combine. A logical Exclusive-Or conjunction of two Boolean expressions returns the value True only if both expressions are different from each other. A bitwise Exclusive-Or conjunction returns a bit if the corresponding bit is set in only one of the two expressions. -Example: +

Example:

Sub ExampleXOR Dim vA As Variant, vB As Variant, vC As Variant, vD As Variant diff --git a/source/text/sbasic/shared/03070100.xhp b/source/text/sbasic/shared/03070100.xhp index f54561edb0..cee63e9603 100644 --- a/source/text/sbasic/shared/03070100.xhp +++ b/source/text/sbasic/shared/03070100.xhp @@ -38,16 +38,16 @@ Subtracts two values. -Syntax: +

Syntax:

Result = Expression1 - Expression2 -Parameters: +

Parameters:

Result: Any numerical expression that contains the result of the subtraction. Expression1, Expression2: Any numerical expressions that you want to subtract. -Example: +

Example:

Sub ExampleSubtraction1 Print 5 - 5 diff --git a/source/text/sbasic/shared/03070200.xhp b/source/text/sbasic/shared/03070200.xhp index 2f45997b55..ac09ffc109 100644 --- a/source/text/sbasic/shared/03070200.xhp +++ b/source/text/sbasic/shared/03070200.xhp @@ -38,16 +38,16 @@ Multiplies two values. -Syntax: +

Syntax:

Result = Expression1 * Expression2 -Parameters: +

Parameters:

Result: Any numeric expression that records the result of a multiplication. Expression1, Expression2: Any numeric expressions that you want to multiply. -Example: +

Example:

Sub ExampleMultiplication1 Print 5 * 5 diff --git a/source/text/sbasic/shared/03070300.xhp b/source/text/sbasic/shared/03070300.xhp index ecfaa55d59..578a9d5b68 100644 --- a/source/text/sbasic/shared/03070300.xhp +++ b/source/text/sbasic/shared/03070300.xhp @@ -38,16 +38,16 @@ Adds or combines two expressions. -Syntax: +

Syntax:

Result = Expression1 + Expression2 -Parameters: +

Parameters:

Result: Any numerical expression that contains the result of the addition. Expression1, Expression2: Any numerical expressions that you want to combine or to add. -Example: +

Example:

Sub ExampleAddition1 Print 5 + 5 diff --git a/source/text/sbasic/shared/03070400.xhp b/source/text/sbasic/shared/03070400.xhp index 3e93644e42..7e44a23798 100644 --- a/source/text/sbasic/shared/03070400.xhp +++ b/source/text/sbasic/shared/03070400.xhp @@ -38,16 +38,16 @@ Divides two values. -Syntax: +

Syntax:

Result = Expression1 / Expression2 -Parameters: +

Parameters:

Result: Any numerical value that contains the result of the division. Expression1, Expression2: Any numerical expressions that you want to divide. -Example: +

Example:

Sub ExampleDivision1 Print 5 / 5 diff --git a/source/text/sbasic/shared/03070500.xhp b/source/text/sbasic/shared/03070500.xhp index e69cee1904..b218f80e5f 100644 --- a/source/text/sbasic/shared/03070500.xhp +++ b/source/text/sbasic/shared/03070500.xhp @@ -38,17 +38,17 @@ Raises a number to a power. -Syntax: +

Syntax:

Result = Expression ^ Exponent -Parameters: +

Parameters:

Result: Any numerical expression that contains the result of the number raised to a power. Expression: Numerical value that you want to raise to a power. Exponent: The value of the power that you want to raise the expression to. -Example: +

Example:

Sub Example Print ( 12.345 ^ 23 ) diff --git a/source/text/sbasic/shared/03080201.xhp b/source/text/sbasic/shared/03080201.xhp index 39311112bd..9a9af9002a 100644 --- a/source/text/sbasic/shared/03080201.xhp +++ b/source/text/sbasic/shared/03080201.xhp @@ -36,20 +36,20 @@ Returns the base of the natural logarithm (e = 2.718282) raised to a power. -Syntax: +

Syntax:

Exp (Number) -Return value: +

Return value:

Double -Parameters: +

Parameters:

Number: Any numeric expression that specifies the power that you want to raise "e" to (the base of natural logarithms). The power must be for both single-precision numbers less than or equal to 88.02969 and double-precision numbers less than or equal to 709.782712893, since $[officename] Basic returns an Overflow error for numbers exceeding these values. -Example: +

Example:

Sub ExampleLogExp Dim dValue As Double diff --git a/source/text/sbasic/shared/03080301.xhp b/source/text/sbasic/shared/03080301.xhp index b4107c0684..22b2648567 100644 --- a/source/text/sbasic/shared/03080301.xhp +++ b/source/text/sbasic/shared/03080301.xhp @@ -38,18 +38,18 @@ Initializes the random-number generator used by the Rnd function. -Syntax: +

Syntax:

Randomize [Number] -Parameters: +

Parameters:

Number: Any integer value. Used as seed to initialize the random-number generator. Equal seeds result in equal random-number sequences by the Rnd function. If the parameter is omitted, the Randomize statement will be ignored. Unless a predictable sequence of numbers is desired, there is no need to use the Randomize statement, as the random-number generator will be initialized automatically at first use – it will be seeded using a system-provided random-number generator that produces uniformly-distributed, non-deterministic random numbers. If no such generator is available on the system, the system time will be used as seed. The Randomize statement affects BASIC's Rnd function only. Other random-number generators (for example the Calc's RAND() function, etc.) are not affected by it. -Example: +

Example:

Sub ExampleRandomize Dim iCount As Integer, iVar As Integer, sText As String diff --git a/source/text/sbasic/shared/03080302.xhp b/source/text/sbasic/shared/03080302.xhp index de2acf226a..51c37e22c4 100644 --- a/source/text/sbasic/shared/03080302.xhp +++ b/source/text/sbasic/shared/03080302.xhp @@ -38,20 +38,20 @@ Returns a random number between 0 and 1. -Syntax: +

Syntax:

Rnd [(Expression)] -Return value: +

Return value:

Double -Parameters: +

Parameters:

Expression: Has no effect, is ignored if provided. The Rnd function returns decimal fractions ranging from 0 (included) to 1 (excluded) according to a uniform distribution. It uses the Mersenne Twister 19937 random-number generator. To generate random integers in a given range, use a formula like in the example below. A Randomize statement with a defined seed value can be used beforehand, if a predictable sequence of numbers is desired. -Example: +

Example:

Sub ExampleRandomSelect Dim iVar As Integer diff --git a/source/text/sbasic/shared/03080401.xhp b/source/text/sbasic/shared/03080401.xhp index cba277d2e8..514a0a9755 100644 --- a/source/text/sbasic/shared/03080401.xhp +++ b/source/text/sbasic/shared/03080401.xhp @@ -38,21 +38,21 @@ Calculates the square root of a numeric expression. -Syntax: +

Syntax:

Sqr (Number) -Return value: +

Return value:

Double -Parameters: +

Parameters:

Number: Any numeric expression that you want to calculate the square root for. A square root is the number that you multiply by itself to produce another number, for example, the square root of 36 is 6. -Example: +

Example:

Sub ExampleSqr Dim iVar As Single diff --git a/source/text/sbasic/shared/03080601.xhp b/source/text/sbasic/shared/03080601.xhp index 33027fbed8..943d67431b 100644 --- a/source/text/sbasic/shared/03080601.xhp +++ b/source/text/sbasic/shared/03080601.xhp @@ -38,21 +38,21 @@ Returns the absolute value of a numeric expression. -Syntax: +

Syntax:

Abs (Number) -Return value: +

Return value:

Double -Parameters: +

Parameters:

Number: Any numeric expression that you want to return the absolute value for. Positive numbers, including 0, are returned unchanged, whereas negative numbers are converted to positive numbers. The following example uses the Abs function to calculate the difference between two values. It does not matter which value you enter first. -Example: +

Example:

Sub ExampleDifference Dim siW1 As Single diff --git a/source/text/sbasic/shared/03080701.xhp b/source/text/sbasic/shared/03080701.xhp index 756fa1aa64..91d67f13f4 100644 --- a/source/text/sbasic/shared/03080701.xhp +++ b/source/text/sbasic/shared/03080701.xhp @@ -38,15 +38,15 @@ Returns an integer number between -1 and 1 that indicates if the number that is passed to the function is positive, negative, or zero. -Syntax: +

Syntax:

Sgn (Number) -Return value: +

Return value:

Integer -Parameters: +

Parameters:

Number: Numeric expression that determines the value that is returned by the function.
@@ -87,7 +87,7 @@ -Example: +

Example:

Sub ExampleSgn Print sgn(-10) ' returns -1 diff --git a/source/text/sbasic/shared/03080801.xhp b/source/text/sbasic/shared/03080801.xhp index 9b7719430a..ab5cd58046 100644 --- a/source/text/sbasic/shared/03080801.xhp +++ b/source/text/sbasic/shared/03080801.xhp @@ -38,20 +38,20 @@ Returns a string that represents the hexadecimal value of a number. -Syntax: +

Syntax:

Hex (Number) -Return value: +

Return value:

String -Parameters: +

Parameters:

Number: Any numeric expression that you want to convert to a hexadecimal number. -Example: +

Example:

Sub ExampleHex ' uses BasicFormulas in %PRODUCTNAME Calc diff --git a/source/text/sbasic/shared/03080802.xhp b/source/text/sbasic/shared/03080802.xhp index 88d69da004..89c43af88d 100644 --- a/source/text/sbasic/shared/03080802.xhp +++ b/source/text/sbasic/shared/03080802.xhp @@ -38,20 +38,20 @@ Returns the octal value of a number. -Syntax: +

Syntax:

Oct (Number) -Return value: +

Return value:

String -Parameters: +

Parameters:

Number: Any numeric expression that you want to convert to an octal value. -Example: +

Example:

Sub ExampleOct MsgBox Oct(255) diff --git a/source/text/sbasic/shared/03090302.xhp b/source/text/sbasic/shared/03090302.xhp index 66522639c2..b8e7c27d9b 100644 --- a/source/text/sbasic/shared/03090302.xhp +++ b/source/text/sbasic/shared/03090302.xhp @@ -39,16 +39,16 @@ GoTo Statement Continues program execution within a Sub or Function at the procedure line indicated by a label. -Syntax: +

Syntax:

GoTo label[:] -Parameters: +

Parameters:

label: A line identifier indicating where to continue execution. The scope of a label is that of the routine it belongs to. Use the GoTo statement to instruct $[officename] Basic to continue program execution at another place within the procedure. The position must be indicated by a label. To set a label, assign a name, and end it with a colon (":"). You cannot use the GoTo statement to jump out of a Sub or Function. -Example: +

Example:

Sub/Function ' statement block diff --git a/source/text/sbasic/shared/03090403.xhp b/source/text/sbasic/shared/03090403.xhp index 1f7cc8584a..c5f1c98582 100644 --- a/source/text/sbasic/shared/03090403.xhp +++ b/source/text/sbasic/shared/03090403.xhp @@ -43,12 +43,12 @@ See also: FreeLibrary -Syntax: +

Syntax:

Declare {Sub | Function} Name Lib "Libname" [Alias "Aliasname"] [Parameter] [As Type] -Parameters: +

Parameters:

Name: A different name than defined in the DLL, to call the subroutine from $[officename] Basic. Aliasname: Name of the subroutine as defined in the DLL. Libname: File or system name of the DLL. This library is automatically loaded the first time the function is used. @@ -56,7 +56,7 @@ Type: Defines the data type of the value that is returned by a function procedure. You can exclude this parameter if a type-declaration character is entered after the name. To pass a parameter to a subroutine as a value instead of as a reference, the parameter must be indicated by the keyword ByVal. -Example: +

Example:

Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( Long ) Sub ExampleDeclare diff --git a/source/text/sbasic/shared/03090404.xhp b/source/text/sbasic/shared/03090404.xhp index 8605392bee..f8ec7f9c8a 100644 --- a/source/text/sbasic/shared/03090404.xhp +++ b/source/text/sbasic/shared/03090404.xhp @@ -38,15 +38,15 @@ Ends a procedure or block. -Syntax: +

Syntax:

End, End Enum, End Function, End If, End Property, End Select, End Sub, End With -Parameters: +

Parameters:

Use the End statement as follows: -Statement +

Statement

End: Is not required, but can be entered anywhere within a procedure to end the program execution. End Enum: Ends an Enum VBA statement End Function: Ends a Function statement. @@ -56,7 +56,7 @@ End Sub: Ends a Sub statement. End With: Ends a With statement -Example: +

Example:

Sub ExampleRandomSelect Dim iVar As Integer diff --git a/source/text/sbasic/shared/03090405.xhp b/source/text/sbasic/shared/03090405.xhp index fc0c593074..03f0e94804 100644 --- a/source/text/sbasic/shared/03090405.xhp +++ b/source/text/sbasic/shared/03090405.xhp @@ -38,18 +38,18 @@ Releases DLLs that were loaded by a Declare statement. A released DLL is automatically reloaded if one of its functions is called. See also: Declare -Syntax: +

Syntax:

FreeLibrary (LibName As String) -Parameters: +

Parameters:

LibName: String expression that specifies the name of the DLL. FreeLibrary can only release DLLs that are loaded during Basic runtime. -Example: +

Example:

Declare Sub MyMessageBeep Lib "user32.dll" Alias "MessageBeep" ( Long ) Sub ExampleDeclare diff --git a/source/text/sbasic/shared/03100060.xhp b/source/text/sbasic/shared/03100060.xhp index f25a39b2ab..13c19a42ae 100644 --- a/source/text/sbasic/shared/03100060.xhp +++ b/source/text/sbasic/shared/03100060.xhp @@ -35,13 +35,13 @@ CDec Function Converts a string expression or numeric expression to a decimal expression. -Syntax: +

Syntax:

CDec(Expression) -Return value: +

Return value:

Decimal number. -Parameter: +

Parameter:

Expression: Any string or numeric expression that you want to convert. diff --git a/source/text/sbasic/shared/03100070.xhp b/source/text/sbasic/shared/03100070.xhp index 840a6eb66f..b9dba26295 100644 --- a/source/text/sbasic/shared/03100070.xhp +++ b/source/text/sbasic/shared/03100070.xhp @@ -35,13 +35,13 @@ CVar Function Converts a string expression or numeric expression to a variant expression. -Syntax: +

Syntax:

CVar(Expression) -Return value: +

Return value:

Variant. -Parameter: +

Parameter:

Expression: Any string or numeric expression that you want to convert. diff --git a/source/text/sbasic/shared/03100300.xhp b/source/text/sbasic/shared/03100300.xhp index 7be03ef96b..d86dc828a3 100644 --- a/source/text/sbasic/shared/03100300.xhp +++ b/source/text/sbasic/shared/03100300.xhp @@ -40,7 +40,7 @@ CDate (Expression)
-Return value: +

Return value:

Date diff --git a/source/text/sbasic/shared/03101000.xhp b/source/text/sbasic/shared/03101000.xhp index ecee1f9fe7..1e94c3c3a2 100644 --- a/source/text/sbasic/shared/03101000.xhp +++ b/source/text/sbasic/shared/03101000.xhp @@ -38,18 +38,18 @@ Converts any numeric expression to a string expression. -Syntax: +

Syntax:

CStr (Expression) -Return value: +

Return value:

String -Parameters: +

Parameters:

Expression: Any valid string or numeric expression that you want to convert. -Expression Types and Conversion Returns +

Expression Types and Conversion Returns

@@ -98,7 +98,7 @@ -Example: +

Example:

Sub ExampleCSTR Dim sVar As String diff --git a/source/text/sbasic/shared/03102101.xhp b/source/text/sbasic/shared/03102101.xhp index a592cbead6..4bb229bc70 100644 --- a/source/text/sbasic/shared/03102101.xhp +++ b/source/text/sbasic/shared/03102101.xhp @@ -48,7 +48,7 @@ -Example: +

Example:

Sub ExampleRedim Dim iVar() As Integer, iCount As Byte diff --git a/source/text/sbasic/shared/03102200.xhp b/source/text/sbasic/shared/03102200.xhp index ccd9d58b8e..2de3456200 100644 --- a/source/text/sbasic/shared/03102200.xhp +++ b/source/text/sbasic/shared/03102200.xhp @@ -38,20 +38,20 @@ Determines if a variable is a data field in an array. -Syntax: +

Syntax:

IsArray (Var) -Return value: +

Return value:

Boolean -Parameters: +

Parameters:

Var: Any variable that you want to test if it is declared as an array. If the variable is an array, then the function returns True, otherwise False is returned. -Example: +

Example:

Sub ExampleIsArray Dim sDatf(10) As String diff --git a/source/text/sbasic/shared/03102300.xhp b/source/text/sbasic/shared/03102300.xhp index a78ce1f7c3..0810eb1f4c 100644 --- a/source/text/sbasic/shared/03102300.xhp +++ b/source/text/sbasic/shared/03102300.xhp @@ -38,20 +38,20 @@ Tests if a numeric or string expression can be converted to a Date variable. -Syntax: +

Syntax:

IsDate (Expression) -Return value: +

Return value:

Boolean -Parameters: +

Parameters:

Expression: Any numeric or string expression that you want to test. If the expression can be converted to a date, the function returns True, otherwise the function returns False. -Example: +

Example:

Sub ExampleIsDate Dim sDateVar As String diff --git a/source/text/sbasic/shared/03102400.xhp b/source/text/sbasic/shared/03102400.xhp index 79d8658a6d..f6a277397a 100644 --- a/source/text/sbasic/shared/03102400.xhp +++ b/source/text/sbasic/shared/03102400.xhp @@ -38,20 +38,20 @@ Tests if a Variant variable contains the Empty value. The Empty value indicates that the variable is not initialized. -Syntax: +

Syntax:

IsEmpty (Var) -Return value: +

Return value:

Boolean -Parameters: +

Parameters:

Var: Any variable that you want to test. If the Variant contains the Empty value, the function returns True, otherwise the function returns False. -Example: +

Example:

Sub ExampleIsEmpty Dim sVar As Variant diff --git a/source/text/sbasic/shared/03102600.xhp b/source/text/sbasic/shared/03102600.xhp index e319eb7f5d..eb9fa1a991 100644 --- a/source/text/sbasic/shared/03102600.xhp +++ b/source/text/sbasic/shared/03102600.xhp @@ -39,21 +39,21 @@ Tests if a Variant contains the special Null value, indicating that the variable does not contain data. -Syntax: +

Syntax:

IsNull (Var) -Return value: +

Return value:

Boolean -Parameters: +

Parameters:

Var: Any variable that you want to test. This function returns True if the Variant contains the Null value, or False if the Variant does not contain the Null value. Null - This value is used for a variant data sub type without valid contents. -Example: +

Example:

Sub ExampleIsNull Dim vVar As Variant diff --git a/source/text/sbasic/shared/03102700.xhp b/source/text/sbasic/shared/03102700.xhp index 2e7892f7f7..893e0f3805 100644 --- a/source/text/sbasic/shared/03102700.xhp +++ b/source/text/sbasic/shared/03102700.xhp @@ -38,20 +38,20 @@ Tests if an expression is a number. If the expression is a number, the function returns True, otherwise the function returns False. -Syntax: +

Syntax:

IsNumeric (Var) -Return value: +

Return value:

Boolean -Parameters: +

Parameters:

Var: Any expression that you want to test. -Example: +

Example:

Sub ExampleIsNumeric Dim vVar As Variant diff --git a/source/text/sbasic/shared/03103100.xhp b/source/text/sbasic/shared/03103100.xhp index eecf09aad2..7f5b276195 100644 --- a/source/text/sbasic/shared/03103100.xhp +++ b/source/text/sbasic/shared/03103100.xhp @@ -38,7 +38,7 @@ Assigns a value to a variable. -Syntax: +

Syntax:

Let Statement diagram @@ -46,11 +46,11 @@ [Let] variable = expression
-Parameters: +

Parameters:

variable: Variable that you want to assign a value to. Value and variable type must be compatible. As in most BASIC dialects, the keyword Let is optional. -Example: +

Example:

Sub ExampleLet Dim sText As String diff --git a/source/text/sbasic/shared/03103400.xhp b/source/text/sbasic/shared/03103400.xhp index 12b182751e..84c5c152da 100644 --- a/source/text/sbasic/shared/03103400.xhp +++ b/source/text/sbasic/shared/03103400.xhp @@ -38,12 +38,12 @@ Dimensions a variable or an array at the module level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules. -Syntax: +

Syntax:

Public VarName[(start To end)] [As VarType][, VarName2[(start To end)] [As VarType][,...]] -Example: +

Example:

Public iPublicVar As Integer Sub ExamplePublic diff --git a/source/text/sbasic/shared/03103450.xhp b/source/text/sbasic/shared/03103450.xhp index eddda82e99..e850d6e57d 100644 --- a/source/text/sbasic/shared/03103450.xhp +++ b/source/text/sbasic/shared/03103450.xhp @@ -38,12 +38,12 @@ Dimensions a variable or an array at the global level (that is, not within a subroutine or function), so that the variable and the array are valid in all libraries and modules for the current session. -Syntax: +

Syntax:

Global VarName[(start To end)] [As VarType][, VarName2[(start To end)] [As VarType][,...]] -Example: +

Example:

Global iGlobalVar As Integer Sub ExampleGlobal diff --git a/source/text/sbasic/shared/03103500.xhp b/source/text/sbasic/shared/03103500.xhp index 0f7e501e2a..378aa63259 100644 --- a/source/text/sbasic/shared/03103500.xhp +++ b/source/text/sbasic/shared/03103500.xhp @@ -39,12 +39,12 @@ The Static statement cannot be used to define variable arrays. Arrays must be specified according to a fixed size. -Syntax: +

Syntax:

Static VarName[(start To end)] [As VarType], VarName2[(start To end)] [As VarType], ... -Example: +

Example:

Sub ExampleStatic Dim iCount As Integer, iResult As Integer diff --git a/source/text/sbasic/shared/03103800.xhp b/source/text/sbasic/shared/03103800.xhp index cddd83b010..0cc73dfcdc 100644 --- a/source/text/sbasic/shared/03103800.xhp +++ b/source/text/sbasic/shared/03103800.xhp @@ -54,11 +54,11 @@ "TextEdit1" to "TextEdit5" in a loop to create five control names. See also: FindPropertyObject -Syntax: +

Syntax:

FindObject( ObjName As String ) -Parameters: +

Parameters:

ObjName: String that specifies the name of the object that you want to address at run-time. diff --git a/source/text/sbasic/shared/03103900.xhp b/source/text/sbasic/shared/03103900.xhp index 974797c51a..0cfe1e7cf5 100644 --- a/source/text/sbasic/shared/03103900.xhp +++ b/source/text/sbasic/shared/03103900.xhp @@ -37,11 +37,11 @@ See also: FindObject -Syntax: +

Syntax:

FindPropertyObject( ObjVar, PropName As String ) -Parameters: +

Parameters:

ObjVar: Object variable that you want to dynamically define at run-time. diff --git a/source/text/sbasic/shared/03104000.xhp b/source/text/sbasic/shared/03104000.xhp index 721a7f56d0..55e4fb2500 100644 --- a/source/text/sbasic/shared/03104000.xhp +++ b/source/text/sbasic/shared/03104000.xhp @@ -36,11 +36,11 @@ Tests if a function is called with an optional parameter. See also: Optional -Syntax: +

Syntax:

IsMissing( ArgumentName ) -Parameters: +

Parameters:

ArgumentName: the name of an optional argument. IsMissing returns True if no value has been passed for the ArgumentName; otherwise, it returns False. diff --git a/source/text/sbasic/shared/03104100.xhp b/source/text/sbasic/shared/03104100.xhp index 4b38f8ebbd..b057559559 100644 --- a/source/text/sbasic/shared/03104100.xhp +++ b/source/text/sbasic/shared/03104100.xhp @@ -36,11 +36,11 @@ Allows you to define parameters that are passed to a function as optional. See also: IsMissing -Syntax: +

Syntax:

Function MyFunction(Text1 As String, Optional Arg2, Optional Arg3) -Examples: +

Examples:

Result = MyFunction("Here", 1, "There") ' all arguments are passed. Result = MyFunction("Test", ,1) ' second argument is missing. diff --git a/source/text/sbasic/shared/03104300.xhp b/source/text/sbasic/shared/03104300.xhp index 7e299ed71d..991d76f967 100644 --- a/source/text/sbasic/shared/03104300.xhp +++ b/source/text/sbasic/shared/03104300.xhp @@ -35,18 +35,18 @@ DimArray Function Returns a Variant array. -Syntax: +

Syntax:

DimArray (ArgumentList) See also Array If no parameters are passed, an empty array is created (like Dim A() that is the same as a sequence of length 0 in Uno). If parameters are specified, a dimension is created for each parameter. -Parameters: +

Parameters:

ArgumentList: A list of any number of arguments that are separated by commas. -Example: +

Example:

a = DimArray( 2, 2, 4 ) ' is the same as DIM a( 2, 2, 4 ) diff --git a/source/text/sbasic/shared/03110100.xhp b/source/text/sbasic/shared/03110100.xhp index 8bd5330440..121bf46958 100644 --- a/source/text/sbasic/shared/03110100.xhp +++ b/source/text/sbasic/shared/03110100.xhp @@ -52,7 +52,7 @@ result: Boolean that specifies the result of the comparison (True, or False) expression1, expression2: Any numeric values or strings that you want to compare. -Comparison operators +

Comparison operators

= : Equal to < : Less than > : Greater than diff --git a/source/text/sbasic/shared/03120402.xhp b/source/text/sbasic/shared/03120402.xhp index 386dc25c27..c191f5d333 100644 --- a/source/text/sbasic/shared/03120402.xhp +++ b/source/text/sbasic/shared/03120402.xhp @@ -35,18 +35,18 @@ Len Function Returns the number of characters in a string, or the number of bytes that are required to store a variable. -Syntax: +

Syntax:

Len (Text As String) -Return value: +

Return value:

Long -Parameters: +

Parameters:

Text: Any string expression or a variable of another type. -Example: +

Example:

Sub ExampleLen Dim sText as String diff --git a/source/text/sbasic/shared/03130700.xhp b/source/text/sbasic/shared/03130700.xhp index 1b93c83da0..40b8528b8c 100644 --- a/source/text/sbasic/shared/03130700.xhp +++ b/source/text/sbasic/shared/03130700.xhp @@ -36,17 +36,17 @@ Returns the number of system ticks provided by the operating system. You can use this function to optimize certain processes. -Syntax: +

Syntax:

GetSystemTicks() -Return value: +

Return value:

Long -Example: +

Example:

Sub ExampleWait Dim lTick As Long diff --git a/source/text/sbasic/shared/03130800.xhp b/source/text/sbasic/shared/03130800.xhp index 1f83baaf76..c09e1ab0f8 100644 --- a/source/text/sbasic/shared/03130800.xhp +++ b/source/text/sbasic/shared/03130800.xhp @@ -38,20 +38,20 @@ Returns the value of an environment variable as a string. Environment variables are dependent on the type of operating system that you have. -Syntax: +

Syntax:

Environ (Environment As String) -Return value: +

Return value:

String -Parameters: +

Parameters:

Environment: Environment variable that you want to return the value for. -Example: +

Example:

Sub ExampleEnviron Dim sTemp As String diff --git a/source/text/sbasic/shared/03131000.xhp b/source/text/sbasic/shared/03131000.xhp index 313a1c0ea2..3f490b8d6d 100644 --- a/source/text/sbasic/shared/03131000.xhp +++ b/source/text/sbasic/shared/03131000.xhp @@ -36,15 +36,15 @@ Returns the internal number of the current $[officename] version. -Syntax: +

Syntax:

s = GetSolarVersion -Return value: +

Return value:

String -Example: +

Example:

Sub ExampleGetSolarVersion Dim sSep As String diff --git a/source/text/sbasic/shared/03131300.xhp b/source/text/sbasic/shared/03131300.xhp index 482cbd51fd..a9fece7f69 100644 --- a/source/text/sbasic/shared/03131300.xhp +++ b/source/text/sbasic/shared/03131300.xhp @@ -36,15 +36,15 @@ Returns the number of twips that represent the width of a pixel. -Syntax: +

Syntax:

n = TwipsPerPixelX -Return value: +

Return value:

Integer -Example: +

Example:

Sub ExamplePixelTwips MsgBox "" & TwipsPerPixelX() & " Twips * " & TwipsPerPixelY() & " Twips",0,"Pixel size" diff --git a/source/text/sbasic/shared/03131400.xhp b/source/text/sbasic/shared/03131400.xhp index e7c0d1a050..d9fecb591f 100644 --- a/source/text/sbasic/shared/03131400.xhp +++ b/source/text/sbasic/shared/03131400.xhp @@ -36,15 +36,15 @@ Returns the number of twips that represent the height of a pixel. -Syntax: +

Syntax:

n = TwipsPerPixelY -Return value: +

Return value:

Integer -Example: +

Example:

Sub ExamplePixelTwips MsgBox "" & TwipsPerPixelX() & " Twips * " & TwipsPerPixelY() & " Twips",0,"Pixel size" diff --git a/source/text/sbasic/shared/03132100.xhp b/source/text/sbasic/shared/03132100.xhp index 28730b1768..b41e818827 100644 --- a/source/text/sbasic/shared/03132100.xhp +++ b/source/text/sbasic/shared/03132100.xhp @@ -33,16 +33,16 @@ Returns a numerical value that specifies the graphical user interface. This function is only provided for downward compatibility to previous versions. The return value is not defined in client-server environments. - Syntax: +

Syntax:

GetGUIType() - Return value: +

Return value:

Integer - Return values: +

Return values:

1: Windowsremoved 3: Mac OS, see i95717 4: UNIX - Example: +

Example:

Sub ExampleEnvironment MsgBox GetGUIType diff --git a/source/text/sbasic/shared/03150000.xhp b/source/text/sbasic/shared/03150000.xhp index 807811c5d9..df130f29ee 100644 --- a/source/text/sbasic/shared/03150000.xhp +++ b/source/text/sbasic/shared/03150000.xhp @@ -45,7 +45,7 @@ Date: The date expression to be formatted. NamedFormat: An optional vbDateTimeFormat enumeration specifying the format that is to be applied to the date and time expression. If omitted, the value vbGeneralDate is used. - Date and Time formats (vbDateTimeFormat enumeration) +

Date and Time formats (vbDateTimeFormat enumeration)

diff --git a/source/text/sbasic/shared/03150001.xhp b/source/text/sbasic/shared/03150001.xhp index 117540e822..eb4854ffef 100644 --- a/source/text/sbasic/shared/03150001.xhp +++ b/source/text/sbasic/shared/03150001.xhp @@ -47,7 +47,7 @@ Weekday: Value from 1 to 7, Mon­day to Sun­day, whose Week Day Name need to be calculated. Abbreviate: Optional. A Boolean value that indicates if the weekday name is to be abbreviated. FirstDayofWeek: Optional. Specifies the first day of the week. - First day of Week: +

First day of Week:

diff --git a/source/text/sbasic/shared/05060700.xhp b/source/text/sbasic/shared/05060700.xhp index 605ea419ca..e59ffaf642 100644 --- a/source/text/sbasic/shared/05060700.xhp +++ b/source/text/sbasic/shared/05060700.xhp @@ -36,7 +36,7 @@ Macro Choose the macro that you want to execute when the selected graphic, frame, or OLE object is selected. Depending on the object that is selected, the function is either found on the Macro tab of the Object dialog, or in the Assign Macro dialog. -Event +

Event

Lists the events that are relevant to the macros that are currently assigned to the selected object. The following table describes the macros and the events that can by linked to objects in your document:
@@ -354,19 +354,19 @@
-Macros +

Macros

Choose the macro that you want to execute when the selected event occurs. Frames allow you to link events to a function, so that the function can determine if it processes the event or $[officename] Writer. -Category +

Category

Lists the open $[officename] documents and applications. Click the name of the location where you want to save the macros. -Macro name +

Macro name

Lists the available macros. Click the macro that you want to assign to the selected object. -Assign +

Assign

Assigns the selected macro to the specified event. The assigned macro's entries are set after the event. -Remove +

Remove

Removes the macro that is assigned to the selected item. -Macro selection +

Macro selection

Select the macro that you want to assign. diff --git a/source/text/sbasic/shared/main0601.xhp b/source/text/sbasic/shared/main0601.xhp index 54872964aa..289dfb5ba5 100644 --- a/source/text/sbasic/shared/main0601.xhp +++ b/source/text/sbasic/shared/main0601.xhp @@ -36,7 +36,7 @@ This help section explains the most common functions of %PRODUCTNAME Basic. For more in-depth information please refer to the OpenOffice.org BASIC Programming Guide on the Wiki. -Working with %PRODUCTNAME Basic +

Working with %PRODUCTNAME Basic

@@ -47,7 +47,7 @@ -Working with VBA Macros +

Working with VBA Macros

diff --git a/source/text/sbasic/shared/vbasupport.xhp b/source/text/sbasic/shared/vbasupport.xhp index e07bc4817a..51259e5e82 100644 --- a/source/text/sbasic/shared/vbasupport.xhp +++ b/source/text/sbasic/shared/vbasupport.xhp @@ -34,15 +34,15 @@ Support for VBA is not complete, but it covers a large portion of the common usage patterns. Most macros use a manageable subset of objects in the Excel API (such as the Range, Worksheet, Workbook, etc.) and the support include those objects, and the most commonly used method/properties of those objects. -Loading Microsoft Office documents with executable VBA macros +

Loading Microsoft Office documents with executable VBA macros

Choose %PRODUCTNAME - PreferencesTools - Options - Load/Save - VBA Properties and mark the Executable code checkbox. Then load or open your document. -Running VBA Macros +

Running VBA Macros

Run VBA macros in the same way as %PRODUCTNAME Basic macros. Since support for VBA is not complete, you may have to edit the VBA code and complete the missing support with %PRODUCTNAME Basic objects, statements and functions. -Editing VBA Macros +

Editing VBA Macros

VBA macros can be edited in the %PRODUCTNAME Basic IDE.
-- cgit