diff options
author | Jean-Pierre Ledure <jp@ledure.be> | 2022-12-15 16:00:09 +0100 |
---|---|---|
committer | Jean-Pierre Ledure <jp@ledure.be> | 2022-12-15 16:26:25 +0000 |
commit | 8a67d717099179bf77bf75d9e7437280e335439e (patch) | |
tree | 75a8c6e229962a60f063af0bdc0745d81040cd24 /wizards | |
parent | 1c5c31b006f8515bfea440bbcf286f8b4b840aac (diff) |
ScriptForge - (SF_Datasheet) minor changes in comments
No effect on code execution.
Hence no cherry-picks to previous release(s).
Change-Id: I724c05ee2807e2783655cbb8889a721a5a5e1b75
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144224
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/source/sfdatabases/SF_Datasheet.xba | 8 | ||||
-rw-r--r-- | wizards/source/sfdocuments/SF_Base.xba | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/wizards/source/sfdatabases/SF_Datasheet.xba b/wizards/source/sfdatabases/SF_Datasheet.xba index a7835e21ffbc..681f9549b814 100644 --- a/wizards/source/sfdatabases/SF_Datasheet.xba +++ b/wizards/source/sfdatabases/SF_Datasheet.xba @@ -21,7 +21,7 @@ Option Explicit ''' In the context of ScriptForge, a datasheet may be opened automatically by script code : ''' - either by reproducing the behaviour of the user interface ''' - or at any moment. In this case the Base document may or may not be opened. -''' Additionally, any SELECT SQL statement may trigger the datasheet display. +''' Additionally, any SELECT SQL statement may define the datasheet display. ''' ''' The proposed API allows for either datasheets (opened manually of by code) in particular ''' to know which cell is selected and its content. @@ -30,8 +30,8 @@ Option Explicit ''' 1) From an open Base document ''' Set ui = CreateScriptService("UI") ''' Set oBase = ui.getDocument("/home/user/Documents/myDb.odb") -''' Set oSheet1 = oBase.OpenTable("Customers") ' or OpenQuery(...) -''' Set oSheet2 = oBase.Datasheets("Products") ' when the datasheet has been opened manually +''' Set oSheet = oBase.OpenTable("Customers") ' or OpenQuery(...) +''' ' May be executed also when the given table is already open ''' 2) Independently from a Base document ''' Set oDatabase = CreateScriptService("Database", "/home/user/Documents/myDb.odb") ''' Set oSheet = oDatabase.OpenTable("Customers") @@ -709,8 +709,8 @@ Try: Set _ControlModel = _ControlView.getModel() End With - ' Retrieve the parent database instance With _TabControllerModel + ' Retrieve the parent database instance Select Case _ParentType Case "BASE" Set _ParentDatabase = [_Parent].GetDatabase(.User, .Password) diff --git a/wizards/source/sfdocuments/SF_Base.xba b/wizards/source/sfdocuments/SF_Base.xba index eb39c86e851f..8970b7c05b96 100644 --- a/wizards/source/sfdocuments/SF_Base.xba +++ b/wizards/source/sfdocuments/SF_Base.xba @@ -520,7 +520,7 @@ Public Function OpenQuery(Optional ByVal QueryName As Variant _ ''' QueryName: a valid Query name as a case-sensitive string ''' DesignMode: when True the query is opened in design mode (Default = False) ''' Returns: -''' A Datasheet class instance if the query could be opened and DesignMode = False, otherwise False +''' A Datasheet class instance if the query could be opened and DesignMode = False, otherwise Nothing ''' Exceptions: ''' Query name is invalid ''' Example: |