<?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[Timer und SendText Problem]]></title><description><![CDATA[<p>ich will einen recht grossen String (ca. 8000 Zeichen) mit SendText() verschicken. Funktioniert auch gut das Problem ist nur das der String alle 60 sec von einem Timer verschickt wird und das geht nicht da kommen immer nur die ca. letzten 4000 Zeichen an. Ich hab es mal statt dem Timer mit einem Button versucht und da kommt alles an.</p>
<p>Also wo kann das Problem sein.</p>
<pre><code class="language-cpp">bool merker;
for(int i=1;i&lt;userlist-&gt;RowCount;i++)
{
   if(userlist-&gt;Cells[1][1]==&quot;&quot;)
     break;
   merker=false;
   String ausgangstext=&quot;#103#&quot;;
   ADOQuery-&gt;SQL-&gt;Clear();
   ADOQuery-&gt;SQL-&gt;Add(&quot;SELECT * FROM notizzettel WHERE `empfaenger`='&quot; + userlist-&gt;Cells[1][i] + &quot;' AND `status`!='erledigt' AND `zustellen` &lt;= NOW();&quot;);
   ADOQuery-&gt;Open();
   for(;!ADOQuery-&gt;Eof;ADOQuery-&gt;Next())
   {
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;ID&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;sender&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;betreff&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;text&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;gesendet&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;art&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;prioritaet&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      merker=true;
   }
   if(merker==true)
     Server-&gt;Socket-&gt;Connections[i-1]-&gt;SendText(ausgangstext);
}
</code></pre>
<p>Das ist der Inhalt der Timers</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/194862/timer-und-sendtext-problem</link><generator>RSS for Node</generator><lastBuildDate>Tue, 18 Aug 2026 06:50:36 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/194862.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 11 Oct 2007 15:49:21 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Timer und SendText Problem on Thu, 11 Oct 2007 15:49:21 GMT]]></title><description><![CDATA[<p>ich will einen recht grossen String (ca. 8000 Zeichen) mit SendText() verschicken. Funktioniert auch gut das Problem ist nur das der String alle 60 sec von einem Timer verschickt wird und das geht nicht da kommen immer nur die ca. letzten 4000 Zeichen an. Ich hab es mal statt dem Timer mit einem Button versucht und da kommt alles an.</p>
<p>Also wo kann das Problem sein.</p>
<pre><code class="language-cpp">bool merker;
for(int i=1;i&lt;userlist-&gt;RowCount;i++)
{
   if(userlist-&gt;Cells[1][1]==&quot;&quot;)
     break;
   merker=false;
   String ausgangstext=&quot;#103#&quot;;
   ADOQuery-&gt;SQL-&gt;Clear();
   ADOQuery-&gt;SQL-&gt;Add(&quot;SELECT * FROM notizzettel WHERE `empfaenger`='&quot; + userlist-&gt;Cells[1][i] + &quot;' AND `status`!='erledigt' AND `zustellen` &lt;= NOW();&quot;);
   ADOQuery-&gt;Open();
   for(;!ADOQuery-&gt;Eof;ADOQuery-&gt;Next())
   {
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;ID&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;sender&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;betreff&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;text&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;gesendet&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;art&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      ausgangstext+=ADOQuery-&gt;FieldByName(&quot;prioritaet&quot;)-&gt;AsString;
      ausgangstext+=&quot;#&quot;;
      merker=true;
   }
   if(merker==true)
     Server-&gt;Socket-&gt;Connections[i-1]-&gt;SendText(ausgangstext);
}
</code></pre>
<p>Das ist der Inhalt der Timers</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1382983</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1382983</guid><dc:creator><![CDATA[Andi_87]]></dc:creator><pubDate>Thu, 11 Oct 2007 15:49:21 GMT</pubDate></item><item><title><![CDATA[Reply to Timer und SendText Problem on Sat, 13 Oct 2007 09:45:05 GMT]]></title><description><![CDATA[<pre><code class="language-cpp">void __fastcall TFormMain::Timer1Timer(TObject *Sender)
{
   //Timer1-&gt;Interval = 60000;
   Timer1-&gt;Interval = 5000;   // nur für Test alle 5 sek.
   Timer1-&gt;Enabled = false;
      // deine Routine
   Timer1-&gt;Enabled = true;
}
//---------------------------------------------------------------------------
</code></pre>
<p>Haste das mit drin?</p>
<p>MfG<br />
kpeter</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1384274</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1384274</guid><dc:creator><![CDATA[kpeter]]></dc:creator><pubDate>Sat, 13 Oct 2007 09:45:05 GMT</pubDate></item></channel></rss>