<?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 : SQLite&#039;a Data Yazdıramıyorum</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : SQLite&#039;a Data Yazdıramıyorum]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 14:37:28 +0000</pubDate>
  <lastBuildDate>Tue, 24 Jun 2025 17:52:56 +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=1040</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[SQLite&#039;a Data Yazdıramıyorum : Merhaba Ceren, Kodu inceledi&#287;imde...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1040&amp;PID=2077#2077</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=257">Emr.Erkmn</a><br /><strong>Konu:</strong> 1040<br /><strong>Gönderim Zamanı:</strong> 24&nbsp;Haziran&nbsp;2025 Saat 17:52<br /><br /><p -start="159" -end="175">Merhaba Ceren,</p><p -start="182" -end="264">Kodu incelediğimde herhangi bir hata görünmüyor. Bende sorunsuz şekilde çalıştı.</p><p -start="271" -end="359">Proje klasöründeki mevcut <code -start="297" -end="302">.db</code> dosyasını silip projeyi tekrar çalıştırmayı dener misin?</p>]]>
   </description>
   <pubDate>Tue, 24 Jun 2025 17:52:56 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1040&amp;PID=2077#2077</guid>
  </item> 
  <item>
   <title><![CDATA[SQLite&#039;a Data Yazdıramıyorum : var MyForm : TclForm; PListView1...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1040&amp;PID=2076#2076</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=306">cerenn</a><br /><strong>Konu:</strong> 1040<br /><strong>Gönderim Zamanı:</strong> 24&nbsp;Haziran&nbsp;2025 Saat 16:27<br /><br /><div>&nbsp;var</div><div>&nbsp; MyForm : TclForm;</div><div>&nbsp; PListView1 : TClProListView;</div><div>&nbsp; DesignerPanel1 : TClProListViewDesignerPanel;</div><div>&nbsp; ad : TClProLabel;</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 Kategoriler (id, ad) VALUES (1, ''Yemek'');</div><div>&nbsp; &nbsp; INSERT INTO Kategoriler (id, ad ) VALUES (2, ''Kıyafet'');';</div><div>&nbsp; &nbsp;&nbsp;</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 + 'DBProduct.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="Kategoriler";';</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 Kategoriler (</div><div>&nbsp; &nbsp; &nbsp; &nbsp; id INTEGER NOT NULL,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ad TEXT NOT NULL,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PRIMARY KEY (id)</div><div>&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; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT id as clRecord_GUID, ad from Kategoriler');</div><div>&nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; if (Qry.Found)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; PListView1.clLoadProListViewDataFromDataset(Qry);</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>&nbsp;void CreateListView;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;PListView1 = MyForm.AddNewProListView(MyForm,'PListView1');</div><div>&nbsp; &nbsp;PListView1.Properties.ItemSpace = 10;</div><div>&nbsp; &nbsp;PListView1.Align = AlClient;</div><div>&nbsp; &nbsp;PListView1.Margins.Bottom = 20;</div><div>&nbsp; &nbsp;PListView1.Margins.Top = 20;</div><div>&nbsp; &nbsp;PListView1.Margins.Right = 20;</div><div>&nbsp; &nbsp;PListView1.Margins.Left = 20;</div><div>&nbsp; &nbsp;PListView1.clProSettings.ColCount = 2;</div><div>&nbsp; &nbsp;PListView1.clProSettings.ItemHeight = 150;</div><div>&nbsp; &nbsp;PListView1.clProSettings.ItemWidth = 150;</div><div>&nbsp; &nbsp;PListView1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#F5BCC9');</div><div>&nbsp; &nbsp;PListView1.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp;PListView1.clProSettings.RoundWidth = 5;</div><div>&nbsp; &nbsp;PListView1.clProSettings.RoundHeight = 5;</div><div>&nbsp; &nbsp;PListView1.clProSettings.ViewType = lvIcon;</div><div>&nbsp; &nbsp;PListView1.SetclProSettings(PListView1.clProSettings);</div><div>&nbsp; &nbsp;PListView1.ListType = 'horizontal';</div><div>&nbsp;}</div><div><br></div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; void CreateDesignerPanel;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;DesignerPanel1 = MyForm.AddNewProListViewDesignerPanel(PListView1,'DesignerPanel1');</div><div>&nbsp; &nbsp;DesignerPanel1.Height = 100;</div><div>&nbsp; &nbsp;DesignerPanel1.Width = 150;</div><div>&nbsp; &nbsp;DesignerPanel1.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#F6EDDB');</div><div>&nbsp; &nbsp;DesignerPanel1.clProSettings.BorderColor = clAlphaColor.clHexToColor('#F5BCC9');</div><div>&nbsp; &nbsp;DesignerPanel1.clProSettings.BorderWidth = 2;</div><div>&nbsp; &nbsp;DesignerPanel1.clProSettings.RoundWidth = 20;</div><div>&nbsp; &nbsp;DesignerPanel1.clProSettings.RoundHeight = 20;</div><div>&nbsp; &nbsp;DesignerPanel1.SetclProSettings(DesignerPanel1.clProSettings);</div><div>&nbsp; &nbsp;PListView1.SetDesignerPanel(DesignerPanel1);</div><div>&nbsp;}</div><div>&nbsp;void CreateProductNameAndPrice;</div><div>&nbsp;{</div><div>&nbsp; &nbsp;ad = MyForm.AddNewProLabel(DesignerPanel1,'ad','test');</div><div>&nbsp; &nbsp;ad.Align = AlMostTop;</div><div>&nbsp; &nbsp;ad.Height = 20;</div><div>&nbsp; &nbsp;ad.Margins.Bottom = 10;</div><div>&nbsp; &nbsp;ad.Margins.Top = 10;</div><div>&nbsp; &nbsp;ad.Margins.Right = 10;</div><div>&nbsp; &nbsp;ad.Margins.Left = 10;</div><div>&nbsp; &nbsp;DesignerPanel1.AddPanelObject(ad,clCaption);</div><div>&nbsp; &nbsp;ad.Properties.AutoSize = True;</div><div>&nbsp; &nbsp;}</div><div><br></div><div><br></div><div>&nbsp; {</div><div>&nbsp; &nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp; CreateListView;</div><div>&nbsp; &nbsp; CreateDesignerPanel;</div><div>&nbsp; &nbsp; SqLiteConnectionCreateTable;</div><div>&nbsp; &nbsp; CreateProductNameAndPrice;</div><div>&nbsp; &nbsp; GetData;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; MyForm.Run;</div><div>&nbsp; }&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Merhaba, doküman sayfasında olan kodun yanlışlık yapmadıysam aynısını aldım.Tek fark tablomun adı ve içeriği.Data eklendi mesajını alıyorum ama table oluşturulsa dahi datalar ısrarla eklenmiyor.Sebebi nedir acaba?</div>]]>
   </description>
   <pubDate>Tue, 24 Jun 2025 16:27:49 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1040&amp;PID=2076#2076</guid>
  </item> 
 </channel>
</rss>