<?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=13652&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-11-22T11:01:03+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=63&amp;t=13652&amp;mode</id>
<entry>
<author><name><![CDATA[mario]]></name></author>
<updated>2015-11-22T11:01:03+01:00</updated>
<published>2015-11-22T11:01:03+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146052#p146052</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146052#p146052"/>
<title type="html"><![CDATA[Re: Skrócenie kodu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146052#p146052"><![CDATA[
Mirku, jak zwykle można na Ciebie liczyć  <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=415">mario</a> — 22 lis 2015, o 11:01</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mirekk36]]></name></author>
<updated>2015-11-22T08:52:44+01:00</updated>
<published>2015-11-22T08:52:44+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146044#p146044</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146044#p146044"/>
<title type="html"><![CDATA[Re: Skrócenie kodu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146044#p146044"><![CDATA[
Ja tak może w innej sprawie bo zauważyłem, że już kilka osób stosuje takie hmmm (bez urazy - pół żartem pół serio powiem) <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> .... więc niektórzy stosują takie MASOCHISTYCZNE techniki - np:<br /><br />[syntax=basic4gl]labeln.txt = ( &quot;n&quot; )[/syntax]<br /><br />zastanawiam się kto wam (tu mówię już tak do wielu osób) <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> .... kazał używać tych nawiasów okrągłych, że się tak tym katujecie ? .... czyż nie lepiej pisać<br /><br />[syntax=basic4gl]labeln.txt = &quot;n&quot;[/syntax]<br /><br />???? przecież to normalnie działa <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> .....<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 4 minutach ]</span></strong><br /><br />wracając do meritum, <br /><br /><div class="quotetitle"><b>Quote:</b></div><div class="quotecontent"><br />Tak, wiem , że funkcja jest bez sensu.<br /></div><br />No masz rację taka funkcja jest kompletnie bez sensu <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> .... ale jeśli chcesz to proszę, a widzę - że masz kłopot z przekazywaniem argumentów, podczas gdy w B4A to jest takie naturalne i domyślne. Po co próbujesz przekazywać labela poprzez nazwę ? przecież label to obiekt:<br /><br />[syntax=basic4gl]Sub fun( lab As Label, txt As String )<br />lab.Text = txt<br />End Sub[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=54">mirekk36</a> — 22 lis 2015, o 08:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[mario]]></name></author>
<updated>2015-11-22T00:21:43+01:00</updated>
<published>2015-11-22T00:21:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146036#p146036</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146036#p146036"/>
<title type="html"><![CDATA[Skrócenie kodu]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=13652&amp;p=146036#p146036"><![CDATA[
W wielu miejscach w kodzie mam operacje na labelach (zmiana koloru, tekstu).<br /><br />Najlepiej było by zrobić funkcję, która by to obsłużyła, Niestety, znowu doszedłem do ściany.<br /><br />np. jak zamienić:<br /><br />label1.txt = ( &quot;a&quot; )<br />label2.txt = ( &quot;b&quot; )<br />label2.txt = ( &quot;c&quot; )<br />.<br />.<br />.<br />labeln.txt = ( &quot;n&quot; )<br /><br />na funkcję typu:<br /><br />[syntax=c]sub text_to_label(label_name As String , text As String)<br /><br />label_name.Text = (&quot;text&quot;)<br /><br />End Sub[/syntax]<br /><br />Tak, wiem , że funkcja jest bez sensu. Chodzi mi o ideę<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=415">mario</a> — 22 lis 2015, o 00:21</p><hr />
]]></content>
</entry>
</feed>