diff options
-rw-r--r-- | source/text/sbasic/shared/03/sf_datasheet.xhp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/text/sbasic/shared/03/sf_datasheet.xhp b/source/text/sbasic/shared/03/sf_datasheet.xhp index ca6dbd8775..b929c2c3f6 100644 --- a/source/text/sbasic/shared/03/sf_datasheet.xhp +++ b/source/text/sbasic/shared/03/sf_datasheet.xhp @@ -43,7 +43,7 @@ <paragraph role="paragraph" id="par_id311619033224680">The <literal>Datasheet</literal> service can be invoked in two different ways depending on whether the database file is open.</paragraph> <paragraph role="paragraph" id="par_id781671108693239">The example below considers that the database file is open, hence the <literal>UI</literal> service can be used to retrieve the document and the <literal>OpenTable</literal> method from the <literal>Database</literal> service is used to get a <literal>Datasheet</literal> service instance.</paragraph> <bascode> - <paragraph role="bascode" id="bas_id561671040218003">Dim ui As Object, oBase As Object, oSheet As Object</paragraph> + <paragraph role="bascode" localize="false" id="bas_id561671040218003">Dim ui As Object, oBase As Object, oSheet As Object</paragraph> <paragraph role="bascode" localize="false" id="bas_id791619033406225">Set ui = CreateScriptService("UI")</paragraph> <paragraph role="bascode" id="bas_id981671039972329">' Object oBase is an instance of the Base service</paragraph> <paragraph role="bascode" localize="false" id="bas_id321619033409042">Set oBase = ui.GetDocument("C:\Documents\myDB.odb")</paragraph> |