Translation

basic_2_python.xhp N0430 help.text
English eoGBT
Context English Chinese (Simplified) Actions
access2base.xhp
par_idA2B005
help.text
The functionalities provided by the implemented macros are all directly inspired by Microsoft Access. The macros are callable mainly from a LibreOffice <emph>Base</emph> application, but also from <emph>any</emph> LibreOffice document (Writer, Calc, ...) where access to data stored in a database makes sense. 这些宏中提供的功能都是直接受微软 Access 的启发而实施的。这些宏主要运行于 LibreOffice <emph> Base</emph> 程序中,但是,如果有必要调用储存在数据库中的数据,当然也可以在「<emph>任何</emph>」其他 LibreOffice 文档 (Writer, Calc, ...) 中运行。
access2base.xhp
par_idA2B006
help.text
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). 比起标准的UNO API,Access2Base 提供的 API 旨在尽可能的简单、直观、容易学习。
access2base.xhp
par_idA2B007
help.text
<emph>The library is documented online on </emph><link href="http://www.access2base.com" name="http://www.access2base.com"><emph>http://www.access2base.com</emph></link>. 「<emph>该程序库的用户文档可在以下位置找到</emph>」:<link href="http://www.access2base.com" name="http://www.access2base.com"><emph>http://www.access2base.com</emph></link>。
access2base.xhp
hd_idA2B008
help.text
The implemented macros include: 实现的宏包括:
access2base.xhp
par_idA2B009
help.text
a simplified and extensible API for <emph>forms</emph>, <emph>dialogs</emph> and <emph>controls</emph> manipulations similar with the Microsoft Access object model, 它是一个简化并可扩展的API,用于对「<emph>表单</emph>」「<emph>对话框</emph>」以及「<emph>控件</emph>」进行操作,与Microsoft Access 对象模型类似。
access2base.xhp
par_idA2B010
help.text
an API for database access with the <emph>table</emph>, <emph>query</emph>, <emph>recordset</emph> and <emph>field</emph> objects, 用于数据库访问的API,包含「<emph>表格</emph>」「<emph>查询</emph>」「<emph>记录集</emph>」和「<emph>字段</emph>」对象,
access2base.xhp
par_idA2B011
help.text
a number of <emph>actions</emph> with a syntax identical to their corresponding Microsoft Access macros/actions, 一些「<emph>动作</emph>」,其语法与相应的 Microsoft Access 宏/动作相同,
access2base.xhp
par_idA2B012
help.text
the <emph>DLookup</emph>, <emph>DSum</emph>, ... database functions, <emph>DLookup</emph>, <emph>DSum</emph>, ... 等数据库函数,
access2base.xhp
par_idA2B013
help.text
the support of the shortcut notations like <item type="literal">Forms!myForm!myControl</item> 支持类似「<item type="literal">表单!我的表单!我的控件</item>」的快捷表示法
access2base.xhp
par_idA2B014
help.text
in addition 此外
access2base.xhp
par_idA2B015
help.text
a consistent errors and exceptions handler, 一致性错误和异常处理,
access2base.xhp
par_idA2B016
help.text
facilities for programming form, dialog and control <emph>events</emph> and 用于编程表单、对话框以及控件「<emph>事件</emph>」的工具,以及
access2base.xhp
par_idA2B017
help.text
the support of both embedded forms and standalone (Writer) forms. 对嵌入式表单和独立 (Writer) 表单的支持。
access2base.xhp
hd_idA2B018
help.text
Compare Access2Base with Microsoft Access VBA Access2Base 与 Microsoft Access VBA 的对比
basic_2_python.xhp
tit
help.text
Basic to Python 从 Basic 到 Python
basic_2_python.xhp
N0430
help.text
<bookmark_value>Basic;Calling Python</bookmark_value> <bookmark_value>API;SimpleFileAccess</bookmark_value> <bookmark_value>API;PathSettings</bookmark_value> <bookmark_value>API;XScript</bookmark_value>
basic_2_python.xhp
hd_id811571848401485
help.text
<variable id="basic2python"><link href="text/sbasic/guide/basic_2_python.xhp" name="Basic Programming Examples">Calling Python Scripts from Basic</link></variable> <variable id="basic2python"><link href="text/sbasic/guide/basic_2_python.xhp" name="Basic Programming Examples">从 Basic 中调用 Python 脚本</link></variable>
basic_2_python.xhp
N0432
help.text
Calling Python scripts from %PRODUCTNAME Basic macros is possible, and valuable features can be obtained such as:
basic_2_python.xhp
N0433
help.text
<literal>ComputerName</literal> identification or <literal>OSName</literal> detection are possible,
basic_2_python.xhp
N0434
help.text
Basic <literal>FileLen()</literal> function and <link href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1ucb_1_1SimpleFileAccess.html" name="ucb.SimpleFileAccess">com.sun.star.ucb.SimpleFileAccess.</link><literal>getSize()</literal> API function exhibit a 2 Gigabytes file size upper limit that Python helps to overcome,
basic_2_python.xhp
N0435
help.text
<link href="https://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1util_1_1PathSettings.html" name="util.PathSettings">com.sun.star.util.PathSettings</link> can be normalized,
basic_2_python.xhp
N0436
help.text
and many more.
basic_2_python.xhp
N0437
help.text
A reasonable exposure to %PRODUCTNAME Basic and to <link href="https://api.libreoffice.org/" name="Application Programming Interface">Application Programming Interface (API)</link> features is recommended prior to perform inter-language calls from Basic to Python, to JavaScript or any other script engine.
basic_2_python.xhp
N0438
help.text
Retrieving Python Scripts
basic_2_python.xhp
N0439
help.text
Python scripts can be personal, shared, or embedded in documents. In order to execute them, %PRODUCTNAME Basic needs to be provided with Python script locations. Locating <link href="https://api.libreoffice.org/docs/idl/ref/interfacecom_1_1sun_1_1star_1_1script_1_1provider_1_1XScript.html" name="script.provider.XScript">com.sun.star.script.provider.XScript</link> interface compliant UNO objects allows the execution of Python scripts:
basic_2_python.xhp
N0444
help.text
''' Grab Python script object before execution
basic_2_python.xhp
N0445
help.text
' Arguments:
basic_2_python.xhp
N0446
help.text
' macro : as "library/module.py$macro" or "module.py$macro"
basic_2_python.xhp
N0447
help.text
' location: as "document", "share", "user" or ENUM(eration)
basic_2_python.xhp
N0448
help.text
' Result:
basic_2_python.xhp
N0449
help.text
' located com.sun.star.script.provider.XScript UNO service'''
User avatar hxlpdd

Suggestion added

Suggested change:

3 weeks ago

Loading…

User avatar hxlpdd

Suggestion added

LibreOffice Help - master / text/sbasic/guideChinese (Simplified)

3 weeks ago
Browse all component changes

Things to check

Suggestions

There is 1 suggestion for this string.

View

Glossary

English Chinese (Simplified)
No related strings found in the glossary.

String information

Context
basic_2_python.xhp
N0430
help.text
Source string description
eoGBT
Source string location
basic_2_python.xhp
String age
2 years ago
Source string age
2 years ago
Translation file
zh-CN/helpcontent2/source/text/sbasic/guide.po, string 21