<?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[Zeichen unterdrücken in Edit]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte eine Hexzahl über Edit eingeben.</p>
<p>Wie kann ich erreichen das nur die Zahlen 0-9 sowie die Buchstaben<br />
A-F zugelassen sind.<br />
Ausserdem soll ein Buchstabe immer als groß dargestellt werden.</p>
<p>Gruß<br />
Johann</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/70349/zeichen-unterdrücken-in-edit</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 01:13:29 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/70349.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 06 Apr 2004 19:25:23 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Tue, 06 Apr 2004 19:25:23 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich möchte eine Hexzahl über Edit eingeben.</p>
<p>Wie kann ich erreichen das nur die Zahlen 0-9 sowie die Buchstaben<br />
A-F zugelassen sind.<br />
Ausserdem soll ein Buchstabe immer als groß dargestellt werden.</p>
<p>Gruß<br />
Johann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/496489</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/496489</guid><dc:creator><![CDATA[hermes]]></dc:creator><pubDate>Tue, 06 Apr 2004 19:25:23 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Tue, 06 Apr 2004 20:41:57 GMT]]></title><description><![CDATA[<p>Siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a>, &quot;Edit - nur Zahlen erlauben&quot;. Sollte sich unschwer erweitern lassen.</p>
<p>Und zu den Grossbuchstaben: du hast doch bestimmt schon mal gehört/gelesen, wie man das auf Englisch nennt. Vielleicht findet sich ja eine passende Funktion!?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/496525</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/496525</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Tue, 06 Apr 2004 20:41:57 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Wed, 07 Apr 2004 14:07:09 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p>Siehe <a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39305" rel="nofollow">FAQ</a>, &quot;Edit - nur Zahlen erlauben&quot;. Sollte sich unschwer erweitern lassen.</p>
<p>Und zu den Grossbuchstaben: du hast doch bestimmt schon mal gehört/gelesen, wie man das auf Englisch nennt. Vielleicht findet sich ja eine passende Funktion!?</p>
</blockquote>
<p>Vielen Dank für die Hilfe.</p>
<pre><code class="language-cpp">//---------------------------------------------------------------------------
void __fastcall TForm1::Edit2KeyPress(TObject *Sender, char &amp;Key)
{
 	if ((Key &gt;= '0' &amp;&amp; Key &lt;= '9') || (Key &gt;='a' &amp;&amp; Key &lt;= 'f') || (Key &gt;='A' &amp;&amp; Key&lt;='F') || Key == 8)
    {
        if (Key &gt;='a' &amp;&amp; Key &lt;='f')
        {
         	Key = Key - 0x20;
        }
    }
    else
    {
     	Key = 0;
    }
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/496946</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/496946</guid><dc:creator><![CDATA[hermes]]></dc:creator><pubDate>Wed, 07 Apr 2004 14:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Thu, 08 Apr 2004 05:35:05 GMT]]></title><description><![CDATA[<p>Hallo hermes,<br />
ich denke &quot;uppercase&quot; hat sich auch erledigt oder?</p>
<p>Evi48</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497303</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497303</guid><dc:creator><![CDATA[evi48]]></dc:creator><pubDate>Thu, 08 Apr 2004 05:35:05 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Thu, 08 Apr 2004 10:09:51 GMT]]></title><description><![CDATA[<p>evi48 schrieb:</p>
<blockquote>
<p>Hallo hermes,<br />
ich denke &quot;uppercase&quot; hat sich auch erledigt oder?</p>
<p>Evi48</p>
</blockquote>
<p>Nein, nur da gibt es wiederum ein Problem mit dem AnsiString.</p>
<p>Key = UpperCase(Key);<br />
Fehler: Cannot convert AnsiString to char</p>
<p>Key = UpperCase(Key.c_str());<br />
Fehler: Structure required on left side of . or .*.</p>
<p>sscanf(Edit1-&gt;Text.c_str(),&quot;%8x&quot;,&amp;id); //c_str() liefert einen Zeiger zurück<br />
Funtioniert.</p>
<p>Was hat eigentlich diese blöde AnsiString für Vorteile, ich hatte bis jetzt<br />
nur Nachteile?</p>
<p>Gruß<br />
Johann</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497448</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497448</guid><dc:creator><![CDATA[hermes]]></dc:creator><pubDate>Thu, 08 Apr 2004 10:09:51 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Thu, 08 Apr 2004 11:23:01 GMT]]></title><description><![CDATA[<p>Key = UpperCase(Key)[1];</p>
]]></description><link>https://www.c-plusplus.net/forum/post/497515</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497515</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Thu, 08 Apr 2004 11:23:01 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Thu, 08 Apr 2004 18:39:59 GMT]]></title><description><![CDATA[<p>hermes schrieb:</p>
<blockquote>
<p>Was hat eigentlich diese blöde AnsiString für Vorteile, ich hatte bis jetzt nur Nachteile?</p>
</blockquote>
<p>Sieh dir die Eigenschaften und Methoden von AnsiString mal in der Hilfe an und versuch dann, das alles von Hand mit bzw. für einen <em>char</em>* nachzubauen.</p>
<p>Und noch eine allgemeine Bitte, stellvertretend auch für deine zahlreichen anderen Beiträge bisher: Zitate bitte auf das <strong>Allernotwendigste</strong> beschränken! Es ist unsinnig, in jeder Antwort den Text des Vorredners komplett zu wiederholen, schliesslich steht der ja bereits für jeden sichtbar im Thread.</p>
<p>Siehe auch: <a href="http://www.afaik.de/usenet/faq/zitieren/" rel="nofollow">http://learn.to/quote</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/497873</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/497873</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Thu, 08 Apr 2004 18:39:59 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Wed, 03 Nov 2004 10:23:38 GMT]]></title><description><![CDATA[<p><a href="http://www.c-plusplus.net/forum/viewtopic.php?t=39262" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic.php?t=39262</a></p>
<p>Wo isser hin?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/643436</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/643436</guid><dc:creator><![CDATA[Marco_77]]></dc:creator><pubDate>Wed, 03 Nov 2004 10:23:38 GMT</pubDate></item><item><title><![CDATA[Reply to Zeichen unterdrücken in Edit on Wed, 03 Nov 2004 10:25:30 GMT]]></title><description><![CDATA[<p>Sorry, hatte vergessen zu schreiben, dass das der Thread zur</p>
<p>&quot;Edit - Nur Zahlen erlauben&quot; ist</p>
]]></description><link>https://www.c-plusplus.net/forum/post/643438</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/643438</guid><dc:creator><![CDATA[Marco_77]]></dc:creator><pubDate>Wed, 03 Nov 2004 10:25:30 GMT</pubDate></item></channel></rss>