<?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[EditKeyPress funktion einrichten]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe in der FAQ diesen Quelltext gefunden und möchte ihn nutzen bekomme ihn aber nicht eingerichtet.</p>
<p>ich habe diesen Quelltext einfach am ende meiner Unit.cpp angefügt, bekomme dann aber immer die Fehlermeldung :</p>
<p>E2316 '_fastcall TForm1::Edit1KeyPress(TObject* ,char &amp;)' ist keine Element von 'TForm1'</p>
<p>Was mache ich falsch, bzw wo muß ich diese Funktion noch eintragen ?</p>
<p>Gruß<br />
Ralf</p>
<p>void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &amp;Key)<br />
{<br />
if(Key!=13)<br />
{<br />
if((Key&lt;'0' || Key&gt;'9') &amp;&amp; Key!=8)<br />
Key=0;<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/171996/editkeypress-funktion-einrichten</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 06:59:45 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/171996.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 31 Jan 2007 13:12:33 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to EditKeyPress funktion einrichten on Wed, 31 Jan 2007 13:12:33 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich habe in der FAQ diesen Quelltext gefunden und möchte ihn nutzen bekomme ihn aber nicht eingerichtet.</p>
<p>ich habe diesen Quelltext einfach am ende meiner Unit.cpp angefügt, bekomme dann aber immer die Fehlermeldung :</p>
<p>E2316 '_fastcall TForm1::Edit1KeyPress(TObject* ,char &amp;)' ist keine Element von 'TForm1'</p>
<p>Was mache ich falsch, bzw wo muß ich diese Funktion noch eintragen ?</p>
<p>Gruß<br />
Ralf</p>
<p>void __fastcall TForm1::Edit1KeyPress(TObject *Sender, char &amp;Key)<br />
{<br />
if(Key!=13)<br />
{<br />
if((Key&lt;'0' || Key&gt;'9') &amp;&amp; Key!=8)<br />
Key=0;<br />
}<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1220464</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1220464</guid><dc:creator><![CDATA[RalfKruppa]]></dc:creator><pubDate>Wed, 31 Jan 2007 13:12:33 GMT</pubDate></item><item><title><![CDATA[Reply to EditKeyPress funktion einrichten on Wed, 31 Jan 2007 13:18:34 GMT]]></title><description><![CDATA[<p>Hi,</p>
<p>füg auf deinem Formular mal ein TEdit ein, lass es markiert, geh links im Objektinspektor auf &quot;Ereignisse / Events&quot; und such dort nach OnKeyPress. Dort dann mal rechts daneben (immernoch im Objektinsprektor) ins leere Feld doppel-klicken <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> ...</p>
<p>mfg, Micha</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1220469</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1220469</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 31 Jan 2007 13:18:34 GMT</pubDate></item><item><title><![CDATA[Reply to EditKeyPress funktion einrichten on Wed, 31 Jan 2007 13:22:40 GMT]]></title><description><![CDATA[<p>&lt;gelöscht, da nicht richtig gelesen&gt;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1220473</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1220473</guid><dc:creator><![CDATA[[[global:guest]]]]></dc:creator><pubDate>Wed, 31 Jan 2007 13:22:40 GMT</pubDate></item></channel></rss>