<?xml version="1.0" encoding="iso-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>Clomosy | Forum : sql lite veri çekme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : sql lite veri çekme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 20:17:47 +0000</pubDate>
  <lastBuildDate>Tue, 13 Aug 2024 13:13:17 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=863</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://forum.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://forum.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[sql lite veri çekme : te&#351;ekk&#252;rler ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=863&amp;PID=1636#1636</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=216">ismail</a><br /><strong>Konu:</strong> 863<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Ağustos&nbsp;2024 Saat 13:13<br /><br />teşekkürler&nbsp;]]>
   </description>
   <pubDate>Tue, 13 Aug 2024 13:13:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=863&amp;PID=1636#1636</guid>
  </item> 
  <item>
   <title><![CDATA[sql lite veri çekme : Merhaba &#304;smail,Qry i&#231;inde gezinirken...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=863&amp;PID=1628#1628</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=157">Kemal</a><br /><strong>Konu:</strong> 863<br /><strong>Gönderim Zamanı:</strong> 13&nbsp;Ağustos&nbsp;2024 Saat 10:34<br /><br />Merhaba İsmail,<div><br></div><div>Qry içinde gezinirken while döngüsü ile dosya sonuna kadar gitmeyi dener misiniz?</div><div><br></div><div>Örnek :</div><div>&nbsp;i = 0;</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT * from depo');</div><div>&nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage(Qry.RecordCount);</div><div>&nbsp; &nbsp; &nbsp; if (Qry.Found)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; with Qry do</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; First;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while (not Eof)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel = MyForm.AddNewLabel(vScroll,'sLabel'+IntToStr(i),'');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.StyledSettings = ssFamily;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.TextSettings.Font.Size=20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Margins.Left= 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Margins.Top= 5;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Height = 50;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Text = FieldByName('name').AsString +'-'+ FieldByName('kod').AsString ;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(FieldByName('name').AsString);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage(i)</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.AutoSize = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.WordWrap = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; i = i +1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; };</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 13 Aug 2024 10:34:44 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=863&amp;PID=1628#1628</guid>
  </item> 
  <item>
   <title><![CDATA[sql lite veri çekme : var MyForm : TclForm; vScroll:TCLVertScrollBox;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=863&amp;PID=1622#1622</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=216">ismail</a><br /><strong>Konu:</strong> 863<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Ağustos&nbsp;2024 Saat 14:48<br /><br /><div>var</div><div>&nbsp; MyForm : TclForm;</div><div>&nbsp; vScroll:TCLVertScrollBox;</div><div>&nbsp; sLabel : TclLabel;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SqLiteInsertData;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = '</div><div>&nbsp; &nbsp; INSERT INTO depo ( name,kod) VALUES (''saç'',''001'');</div><div>&nbsp; &nbsp; INSERT INTO depo (name,kod) VALUES&nbsp; (''saç2'',''002'')</div><div>&nbsp; &nbsp; ';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Adding data to the table was successful!');</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SqLiteConnectionCreateTable;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; TableExists: Boolean;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'DBDepo.db3', '');</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check if the table exists</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="depo";';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check the results</div><div>&nbsp; &nbsp; &nbsp; TableExists = not Clomosy.DBSQLiteQuery.Eof;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Create the table if it does not exist</div><div>&nbsp; &nbsp; &nbsp; if not (TableExists)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE depo(</div><div>&nbsp; &nbsp; &nbsp; &nbsp; name TEXT NOT NULL,</div><div>&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; kod TEXT NOT NULL</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; )';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Table successfully added to the database!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SqLiteInsertData;</div><div>&nbsp; &nbsp; &nbsp; } else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('The Products table already exists.');</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; void GetData;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; Qry : TClSQLiteQuery;</div><div>&nbsp; &nbsp; i : Integer;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT * from depo');</div><div>&nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; if (Qry.Found)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; for i = 0 to Qry.RecordCount-1</div><div>&nbsp; &nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel = MyForm.AddNewLabel(vScroll,'sLabel'+IntToStr(i),'');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.StyledSettings = ssFamily;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.TextSettings.Font.Size=20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Margins.Left= 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Margins.Top= 5;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.Height = 50;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sLabel.Text = Qry.FieldByName('name').AsString +'-'+ Qry.FieldByName('kod').AsString ;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.AutoSize = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; sLabel.WordWrap = True;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception class: '+LastExceptionClassName+' Exception Message: ' +LastExceptionMessage);</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; }</div><div><br></div><div><br></div><div>&nbsp; {</div><div>&nbsp; &nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp; vScroll = MyForm.AddNewVertScrollBox(MyForm,'vScrollBox');</div><div>&nbsp; &nbsp; vScroll.Align = alMostTop;</div><div>&nbsp; &nbsp; vScroll.Height = MyForm.clheight-70;</div><div>&nbsp; &nbsp; SqLiteConnectionCreateTable;</div><div>&nbsp; &nbsp; GetData;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; MyForm.Run;</div><div>&nbsp; }</div><div>ilk eklediğim veriyi labela yazıyor&nbsp; ama diğer verileri yazmıyor.&nbsp;</div>]]>
   </description>
   <pubDate>Mon, 12 Aug 2024 14:48:07 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=863&amp;PID=1622#1622</guid>
  </item> 
 </channel>
</rss>