<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=63&amp;t=13627&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-11-18T22:19:25+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=63&amp;t=13627&amp;mode</id>
<entry>
<author><name><![CDATA[sz4t4n]]></name></author>
<updated>2015-11-18T22:19:25+01:00</updated>
<published>2015-11-18T22:19:25+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13627&amp;p=145811#p145811</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13627&amp;p=145811#p145811"/>
<title type="html"><![CDATA[Re: Edit_text i label przepisanie]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13627&amp;p=145811#p145811"><![CDATA[
Cześć,<br /><br />możesz to zrobić np tak:<br /><br />w pierwszym activity deklarujesz string w sub process_Globals<br /><br />[syntax=basic4gl]Sub Process_Globals<br />'These global variables will be declared once when the application starts.<br />'These variables can be accessed from all modules.<br />Dim str As String<br />End Sub[/syntax]<br /><br />nie wiem jak otwierasz drugie activity ale załóżmy że przez button:<br /><br />[syntax=basic4gl]Sub Button1_Click<br /><br />str = EditText1.Text<br />StartActivity(&quot;activity_2&quot;)<br /><br />End Sub[/syntax]<br /><br />w drugim activity dodajesz coś takiego:<br /><br />[syntax=basic4gl]Sub Activity_Create(FirstTime As Boolean)<br />'Do not forget to load the layout file created with the visual designer. For example:<br />Activity.LoadLayout(&quot;Layout2&quot;)<br />Label1.Text = activity_1.str<br /><br /><br />End Sub[/syntax]<br /><br />i działa <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=377">sz4t4n</a> — 18 lis 2015, o 22:19</p><hr />
]]></content>
</entry>
</feed>