<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=EN%2Fdocumentation%2Fbasic_guide%2Fproperties_and_methods_api</id>
	<title>EN/documentation/basic guide/properties and methods api - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.harlamenkov.ru/index.php?action=history&amp;feed=atom&amp;title=EN%2Fdocumentation%2Fbasic_guide%2Fproperties_and_methods_api"/>
	<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties_and_methods_api&amp;action=history"/>
	<updated>2026-11-11T13:50:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties_and_methods_api&amp;diff=15948&amp;oldid=prev</id>
		<title>Sancho: moved EN/documentation/basic guide/properties and methods (api) to EN/documentation/basic guide/properties and methods api</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties_and_methods_api&amp;diff=15948&amp;oldid=prev"/>
		<updated>2011-09-02T17:02:18Z</updated>

		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php?title=EN/documentation/basic_guide/properties_and_methods_(api)&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;EN/documentation/basic guide/properties and methods (api) (page does not exist)&quot;&gt;EN/documentation/basic guide/properties and methods (api)&lt;/a&gt; to &lt;a href=&quot;/wiki/EN/documentation/basic_guide/properties_and_methods_api&quot; title=&quot;EN/documentation/basic guide/properties and methods api&quot;&gt;EN/documentation/basic guide/properties and methods api&lt;/a&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;Revision as of 17:02, 2 September 2011&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties_and_methods_api&amp;diff=15910&amp;oldid=prev</id>
		<title>Sancho: Основной текст</title>
		<link rel="alternate" type="text/html" href="https://wiki.harlamenkov.ru/index.php?title=EN/documentation/basic_guide/properties_and_methods_api&amp;diff=15910&amp;oldid=prev"/>
		<updated>2011-09-02T11:22:52Z</updated>

		<summary type="html">&lt;p&gt;Основной текст&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;section begin=title /&amp;gt;&amp;lt;noinclude&amp;gt;{{DISPLAYTITLE:&amp;lt;/noinclude&amp;gt;Properties and Methods (API)&amp;lt;noinclude&amp;gt;}}&amp;lt;/noinclude&amp;gt;&amp;lt;section end=title /&amp;gt;{{BreadCrumbL10n}}&lt;br /&gt;
&lt;br /&gt;
{{Documentation/BASICGuideTOC&lt;br /&gt;
|ShowPrevNext=block&lt;br /&gt;
|ShowPrevPage=block&lt;br /&gt;
|PrevPage=EN/documentation/basic_guide/uno&lt;br /&gt;
|NextPage=EN/documentation/basic_guide/modules_services_and_interfaces&lt;br /&gt;
|api=block&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
An object in {{OOo}} Basic provides a range of properties and methods which can be called by means of the object. &lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
&lt;br /&gt;
'''Properties''' are like the properties of an object; for example, &amp;lt;tt&amp;gt;Filename&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Title&amp;lt;/tt&amp;gt; for a &amp;lt;tt&amp;gt;Document&amp;lt;/tt&amp;gt; object.&lt;br /&gt;
&lt;br /&gt;
The properties are set by means of a simple assignment:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Document.Title = &amp;quot;OpenOffice.org Basic Programmer's Guide&amp;quot;&lt;br /&gt;
Document.Filename = &amp;quot;basguide.odt&amp;quot;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A property, just like a normal variable, has a type that defines which values it can record. The preceding &amp;lt;tt&amp;gt;Filename&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;Title&amp;lt;/tt&amp;gt; properties are of the string type.&lt;br /&gt;
&lt;br /&gt;
=== Real Properties and Imitated Properties ===&lt;br /&gt;
&lt;br /&gt;
Most of the properties of an object in {{OOo}} Basic are defined as such in the UNO description of the service. In addition to these &amp;quot;real&amp;quot; properties, there are also properties in {{OOo}} Basic which consist of two methods at the UNO level. One of these is used to query the value of the property and the other is issued to set it (&amp;lt;tt&amp;gt;get&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;set&amp;lt;/tt&amp;gt; methods). The property has been virtually imitated from two methods. Character objects in UNO, for example, provide the &amp;lt;tt&amp;gt;getPosition&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;setPosition&amp;lt;/tt&amp;gt; methods through which the associated key point can be called up and changed. The {{OOo}} Basic programmer can access the values through the &amp;lt;tt&amp;gt;Position&amp;lt;/tt&amp;gt; property. Regardless of this, the original methods are also available (in our example, &amp;lt;tt&amp;gt;getPosition&amp;lt;/tt&amp;gt; and &amp;lt;tt&amp;gt;setPosition&amp;lt;/tt&amp;gt;).&lt;br /&gt;
&lt;br /&gt;
== Methods ==&lt;br /&gt;
&lt;br /&gt;
Methods can be understood as functions that relate directly to an object and through which this object is called. The preceding &amp;lt;tt&amp;gt;Document&amp;lt;/tt&amp;gt; object could, for example, provide a &amp;lt;tt&amp;gt;Save&amp;lt;/tt&amp;gt; method, which can be called as follows:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Document.Save()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Methods, just like functions, may contain parameters and return values. The syntax of such method calls is oriented towards classic functions. The following call also specifies the &amp;lt;tt&amp;gt;True&amp;lt;/tt&amp;gt; parameter for the document object when requesting the Save method.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;oobas&amp;quot;&amp;gt;&lt;br /&gt;
Ok = Document.Save(True)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Once the method has been completed, &amp;lt;tt&amp;gt;Save&amp;lt;/tt&amp;gt; saves a return value in the &amp;lt;tt&amp;gt;Ok&amp;lt;/tt&amp;gt; variable. &lt;br /&gt;
&lt;br /&gt;
 &lt;br /&gt;
{{PDL1}}&lt;/div&gt;</summary>
		<author><name>Sancho</name></author>
		
	</entry>
</feed>