<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Форум компьютерной помощи &mdash; Работа с классами в lotus script]]></title>
	<link rel="self" href="https://itpmr.ru/extern.php?action=feed&amp;tid=871&amp;type=atom" />
	<updated>2014-08-19T12:45:21Z</updated>
	<generator>PunBB</generator>
	<id>https://itpmr.ru/viewtopic.php?id=871</id>
		<entry>
			<title type="html"><![CDATA[Re: Работа с классами в lotus script]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124211#p124211" />
			<content type="html"><![CDATA[<p>Двумерный массив заполняем с помошью классов</p><p>Sub Initialize&nbsp; &nbsp; <br />&nbsp; &nbsp; Dim xxx As New myklass<br />&nbsp; &nbsp; Redim xxx.AA(1)<br />&nbsp; &nbsp; Redim xxx.BB(1)<br />&nbsp; &nbsp; xxx.AA(0) =&nbsp; &quot;00&quot;<br />&nbsp; &nbsp; xxx.AA(1) =&nbsp; &quot;11&quot;<br />&nbsp; &nbsp; xxx.BB(0) =&nbsp; &quot;22&quot;<br />&nbsp; &nbsp; xxx.BB(1)=&nbsp; &quot;33&quot;<br />&nbsp; &nbsp; Print xxx.AA(0) <br />End Sub</p><br /><p>Class myklass<br />&nbsp; &nbsp; Public AA() As String<br />&nbsp; &nbsp; Public BB() As String<br />End Class</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2014-08-19T12:45:21Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124211#p124211</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Работа с классами в lotus script]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124209#p124209" />
			<content type="html"><![CDATA[<p>А это более простой пример выведет 1122:</p><p>Sub Initialize<br />&nbsp; &nbsp; Dim xxx As New myklass<br />&nbsp; &nbsp; Dim yyy As String<br />&nbsp; &nbsp; xxx.AA =&nbsp; &quot;11&quot;<br />&nbsp; &nbsp; xxx.BB=&nbsp; &quot;22&quot;<br />&nbsp; &nbsp; yyy =&nbsp; &nbsp;xxx.MySum(xxx)<br />&nbsp; &nbsp; Print yyy<br />End Sub</p><br /><p>Class myklass<br />&nbsp; &nbsp; Public AA As String<br />&nbsp; &nbsp; Public BB As String&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Public Function MySum( V As myklass) As String<br />&nbsp; &nbsp; &nbsp; &nbsp; MySum = V.AA + V.BB<br />&nbsp; &nbsp; End Function<br />End Class</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2014-08-18T13:08:25Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124209#p124209</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Работа с классами в lotus script]]></title>
			<link rel="alternate" href="https://itpmr.ru/viewtopic.php?pid=124208#p124208" />
			<content type="html"><![CDATA[<p>Вот простой пример по работе с классами в lotus script:<br />напечатает &quot;1122 2211&quot;<br />Sub Initialize<br />&nbsp; &nbsp; Dim xxx As New myklass&nbsp; &#039; создаст xxx.AA и xxx.BB<br />&nbsp; &nbsp; Dim yyy As New myklass<br />&nbsp; &nbsp; Dim session&nbsp; As NotesSession <br />&nbsp; &nbsp; Set session = New NotesSession <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; xxx.AA =&nbsp; &quot;11&quot;<br />&nbsp; &nbsp; xxx.BB=&nbsp; &quot;22&quot;<br />&nbsp; &nbsp; Set yyy = xxx.MySum(xxx)&nbsp; &#039;&nbsp; получит результат функции MySum<br />&nbsp; &nbsp; Print yyy.AA &amp;&quot;&nbsp; &quot;&amp; yyy.BB<br />End Sub&nbsp; &nbsp; </p><p>Class myklass<br />&nbsp; &nbsp; Public AA As String<br />&nbsp; &nbsp; Public BB As String&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; <br />&nbsp; &nbsp; Public Function MySum( V As myklass) As myklass &#039; V будет из V.AA=&quot;11&quot; и V.BB=&quot;22&quot;<br />&nbsp; &nbsp; &nbsp; &nbsp; Set MySum = New myklass&nbsp; &#039;&nbsp; создастся экземпляр MySum класса myklass<br />&nbsp; &nbsp; &nbsp; &nbsp; MySum.AA = V.AA + V.BB<br />&nbsp; &nbsp; &nbsp; &nbsp; MySum.BB =&nbsp; V.BB + V.AA<br />&nbsp; &nbsp; End Function<br />End Class</p>]]></content>
			<author>
				<name><![CDATA[admin]]></name>
				<uri>https://itpmr.ru/profile.php?id=2</uri>
			</author>
			<updated>2014-08-18T13:01:57Z</updated>
			<id>https://itpmr.ru/viewtopic.php?pid=124208#p124208</id>
		</entry>
</feed>
