<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[string mit einem editfeld in eine Klasse schreiben]]></title><description><![CDATA[<p>hat jemand eine Idee, wie ich von einem editfeld einen String in eine<br />
Klasse ( Objekt ) bringen kann.</p>
<p>Gruß Mario</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/91381/string-mit-einem-editfeld-in-eine-klasse-schreiben</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 11:44:01 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/91381.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 08 Nov 2004 09:29:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to string mit einem editfeld in eine Klasse schreiben on Mon, 08 Nov 2004 09:29:56 GMT]]></title><description><![CDATA[<p>hat jemand eine Idee, wie ich von einem editfeld einen String in eine<br />
Klasse ( Objekt ) bringen kann.</p>
<p>Gruß Mario</p>
]]></description><link>https://www.c-plusplus.net/forum/post/647154</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/647154</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 08 Nov 2004 09:29:56 GMT</pubDate></item><item><title><![CDATA[Reply to string mit einem editfeld in eine Klasse schreiben on Mon, 08 Nov 2004 11:19:21 GMT]]></title><description><![CDATA[<p>Öhm so vielleicht?</p>
<pre><code class="language-cpp">AnsiString s = Edit1-&gt;Text;
</code></pre>
<p>Oder willst du den String an eine Klasse per Konstruktor übergen? Beschreib mal genauer was du vorhast!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/647226</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/647226</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Mon, 08 Nov 2004 11:19:21 GMT</pubDate></item><item><title><![CDATA[Reply to string mit einem editfeld in eine Klasse schreiben on Mon, 08 Nov 2004 12:01:26 GMT]]></title><description><![CDATA[<p>Meinst du ein TObject -Objekt? Also String aus einem Edit-Feld an TObject-Objekt übermitteln?</p>
<p>Wenn ja: Schau mal in der Hilfe/Suche nach dynamic_cast.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/647271</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/647271</guid><dc:creator><![CDATA[Windoof]]></dc:creator><pubDate>Mon, 08 Nov 2004 12:01:26 GMT</pubDate></item><item><title><![CDATA[Reply to string mit einem editfeld in eine Klasse schreiben on Mon, 08 Nov 2004 14:20:49 GMT]]></title><description><![CDATA[<p>PuppetMaster2k schrieb:</p>
<blockquote>
<p>Öhm so vielleicht?</p>
<pre><code class="language-cpp">AnsiString s = Edit1-&gt;Text;
</code></pre>
<p>Oder willst du den String an eine Klasse per Konstruktor übergen? Beschreib mal genauer was du vorhast!</p>
</blockquote>
<p>Ja danke schon einmal! der Ansatz hat jetzt schon einmal funktioniert!<br />
Wenn es jetzt stetig weiter funktioniert dann kann ich die Klassen gut<br />
verstehen.</p>
<p>Gruß Mario</p>
<p>TFahrzeug marke1; // Eingabe in die Klasse<br />
TFahrzeug marke2;<br />
TFahrzeug ergebnisfahrzeug;</p>
<p>marke1.setmarke (EdZaehler1-&gt;Text);</p>
<p>-----------------------------------------------------------</p>
<p>class TFahrzeug // Klasse TFahrzeug</p>
<p>{</p>
<p>private:</p>
<p>AnsiString marke ;<br />
int maxgeschwindigkeit;</p>
<p>public:</p>
<p>TFahrzeug (void); // Standardkonstruktor</p>
<p>void setmarke(AnsiString m);<br />
bool setmaxgeschwindigkeit(int ma);</p>
<p>AnsiString getmarke (void);<br />
int getmaxgeschwindigkeit (void);</p>
<p>TFahrzeug vergleicheFahrzeug (TFahrzeug b);<br />
};</p>
]]></description><link>https://www.c-plusplus.net/forum/post/647378</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/647378</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Mon, 08 Nov 2004 14:20:49 GMT</pubDate></item></channel></rss>