<?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 : veri tabanı  bağlayamıyorum</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : veri tabanı  bağlayamıyorum]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:09 +0000</pubDate>
  <lastBuildDate>Mon, 11 Aug 2025 17:21:50 +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=1174</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[veri tabanı  bağlayamıyorum : Merhaba Eda&#214;ncelikle kodunda baz&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1174&amp;PID=2489#2489</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=306">cerenn</a><br /><strong>Konu:</strong> 1174<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Ağustos&nbsp;2025 Saat 17:21<br /><br />Merhaba Eda&nbsp;<div>Öncelikle kodunda bazı hatalar mevcut</div><div>Fonksiyonları eğer parametresizse ()olmadan kullanıyoruz örneğin</div><div><br></div><div><span style=": rgb251, 251, 253;">void InitializeDatabase() değilde&nbsp;</span><span style=": rgb251, 251, 253;">void InitializeDatabase;&nbsp;</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">şeklinde kullanman lazım tüm fonksiyonlarını buna çevirirsen hatalardan biri düzelicektir.</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">Ayrıca showmessageları</span></div><div><span style=": rgb251, 251, 253;">'kaloriFormInstance.ShowMessage('Ekleme hatası! Kalori değerinin bir sayı olduğundan emin olun.');' şeklinde değilde direkt '</span><span style=": rgb251, 251, 253;">ShowMessage('Ekleme hatası! Kalori değerinin bir sayı olduğundan emin olun.');'&nbsp; şeklinde kullanman gerekiyor</span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">if (yemekAdiEdit.Text != '') and (kaloriEdit.Text != '')&nbsp; kullanımı doğru değil and kullanmıyoruz &amp;&amp; şeklinde gösteriyoruz ve yine != şeklinde bir kullanım yok &lt;&gt; şeklinde kullanman gerekiyor yani&nbsp;</span><span style=": rgb251, 251, 253;">if ((yemekAdiEdit.Text &lt;&gt; '') &amp;&amp;(kaloriEdit.Text &lt;&gt; '')) doğrusu bu şekilde.</span></div><div><span style=": rgb251, 251, 253;">clomosyde try-catch yok try-except ya da try-finally var senin kodun için except kullanmak uygun.&nbsp;</span></div><div><div style=": rgb251, 251, 253;">try</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; {</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; Query.Sql.Text = 'INSERT INTO yemekler (yemek_adi, kalori) VALUES ("' + yemekAdiEdit.Text + '", ' + kaloriEdit.Text + ')';</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; Query.ExecSQL();</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; Query.Close();</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp;&nbsp;</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; yemekAdiEdit.Text = '';</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; kaloriEdit.Text = '';</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; LoadDataToList();</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; kaloriFormInstance.ShowMessage('Yemek başarıyla eklendi!');</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; }</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; except</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; {</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; &nbsp; ShowMessage('Ekleme hatası! Kalori değerinin bir sayı olduğundan emin olun.');</div><div style=": rgb251, 251, 253;">&nbsp; &nbsp; }</div></div><div style=": rgb251, 251, 253;">}</div><div>şeklinde olmalı fazladan en sona bir '}' atıyoruz kural böyle.</div><div><br></div><div>Bunun haricinde sqllitede ExecSQL() diye bir ifade yok bunu sqlserverda kullanıyoruz.sqllite için</div><div>chrome-extension://efaidnbmnnnibpcajpcglclefindmkaj/<a href="https://clomosy.com/docs/ClomosyKitapV2.pdf" target="_blank" rel="nofollow">https://clomosy.com/docs/ClomosyKitapV2.pdf</a></div><div>218.sayfa&nbsp;14.7.2. Local (Yerel) Veri Tabanı Bağlantıları inceleyebilirsin.Syntax hatalarını düzelttikten ve kitaba baktıktan sonra aldığın bir hata olursa ve paylaşırsan tekrar yardımcı olabilirim.</div><div>İyi çalışmalar.</div>]]>
   </description>
   <pubDate>Mon, 11 Aug 2025 17:21:50 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1174&amp;PID=2489#2489</guid>
  </item> 
  <item>
   <title><![CDATA[veri tabanı  bağlayamıyorum : kodlar&#305;m a&#351;a&#287;&#305;daki &#351;ekilde ve...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1174&amp;PID=2487#2487</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=336">ela göçel</a><br /><strong>Konu:</strong> 1174<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Ağustos&nbsp;2025 Saat 16:41<br /><br /><div>kodlarım aşağıdaki şekilde ve RUNTIME ERROR</div><div>File library anasayfa: Unit kaloriForminstance: Syntax error.</div><div>Source position: 16,25 when evaluating instruction CallProc</div><div>(SFFFFFFFF, $1, SAC3728,5134734D0, RunUnit ).</div><div>Stack content is: &#091;Null, Integer: 525653400,Null, Null...&#093;.</div><div>Source position: 22,40</div><div>Position: 22, 40. HATASI ALIYORUM NE YAPMAM GEREKİYOR&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>var</div><div>&nbsp; kaloriFormInstance: TCLForm;</div><div>&nbsp; mainLayout: TCLLayout;</div><div>&nbsp; titleLabel: TCLLabel;</div><div>&nbsp; dataListView: TCLListView;</div><div>&nbsp; refreshButton: TCLProButton;</div><div>&nbsp; addPanel: TCLProPanel;</div><div>&nbsp; yemekAdiEdit: TCLProEdit;</div><div>&nbsp; kaloriEdit: TCLProEdit;</div><div>&nbsp; ekleButton: TCLProButton;</div><div>&nbsp; SQLiteDB: TCLSQLiteConnection;</div><div>&nbsp; Query: TCLSQLiteQuery;</div><div>&nbsp; dbPath: string;</div><div><br></div><div><br></div><div>void InitializeDatabase()</div><div>{</div><div>&nbsp; dbPath = Clomosy.AppFilesPath + 'kalori.db';</div><div>&nbsp;&nbsp;</div><div>&nbsp; SQLiteDB = kaloriFormInstance.AddNewSQLiteConnection(kaloriFormInstance, 'SQLiteDB');</div><div>&nbsp; SQLiteDB.DatabaseName = dbPath;</div><div>&nbsp;&nbsp;</div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; SQLiteDB.Connect();</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Query = kaloriFormInstance.AddNewSQLiteQuery(kaloriFormInstance, 'Query');</div><div>&nbsp; &nbsp; Query.Connection = SQLiteDB;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Query.Sql.Text = 'CREATE TABLE IF NOT EXISTS yemekler (id INTEGER PRIMARY KEY AUTOINCREMENT, yemek_adi TEXT NOT NULL, kalori INTEGER NOT NULL)';</div><div>&nbsp; &nbsp; Query.ExecSQL();</div><div>&nbsp; &nbsp; Query.Close();</div><div>&nbsp; }</div><div>&nbsp; catch</div><div>&nbsp; {</div><div>&nbsp; &nbsp; kaloriFormInstance.ShowMessage('Veritabanı bağlantı hatası!');</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void LoadDataToList()</div><div>{</div><div>&nbsp; var listItem: TCLListViewItem;</div><div><br></div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; dataListView.Items.Clear();</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Query.Sql.Text = 'SELECT id, yemek_adi, kalori FROM yemekler ORDER BY yemek_adi';</div><div>&nbsp; &nbsp; Query.Open();</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while not Query.Eof</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; listItem = dataListView.Items.Add();</div><div>&nbsp; &nbsp; &nbsp; listItem.Text = Query.FieldByName('yemek_adi').AsString;</div><div>&nbsp; &nbsp; &nbsp; listItem.Detail = Query.FieldByName('kalori').AsString + ' kcal';</div><div>&nbsp; &nbsp; &nbsp; listItem.TagString = Query.FieldByName('id').AsString;</div><div>&nbsp; &nbsp; &nbsp; Query.Next();</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Query.Close();</div><div>&nbsp; }</div><div>&nbsp; catch</div><div>&nbsp; {</div><div>&nbsp; &nbsp; kaloriFormInstance.ShowMessage('Veri yükleme hatası!');</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void RefreshButtonClick()</div><div>{</div><div>&nbsp; LoadDataToList();</div><div>}</div><div><br></div><div><br></div><div>void EkleButtonClick()</div><div>{</div><div>&nbsp; if (yemekAdiEdit.Text != '') and (kaloriEdit.Text != '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Query.Sql.Text = 'INSERT INTO yemekler (yemek_adi, kalori) VALUES ("' + yemekAdiEdit.Text + '", ' + kaloriEdit.Text + ')';</div><div>&nbsp; &nbsp; &nbsp; Query.ExecSQL();</div><div>&nbsp; &nbsp; &nbsp; Query.Close();</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; yemekAdiEdit.Text = '';</div><div>&nbsp; &nbsp; &nbsp; kaloriEdit.Text = '';</div><div>&nbsp; &nbsp; &nbsp; LoadDataToList();</div><div>&nbsp; &nbsp; &nbsp; kaloriFormInstance.ShowMessage('Yemek başarıyla eklendi!');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; catch</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; kaloriFormInstance.ShowMessage('Ekleme hatası! Kalori değerinin bir sayı olduğundan emin olun.');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; else</div><div>&nbsp; {</div><div>&nbsp; &nbsp; kaloriFormInstance.ShowMessage('Lütfen tüm alanları doldurun!');</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; kaloriFormInstance = TCLForm.Create(Self);</div><div>&nbsp; kaloriFormInstance.SetFormColor('#cce6d6', '#678e76', clGVertical);<img src="https://forum.clomosy.com.tr/smileys/smiley7.gif" border="0" alt="Angry" title="Angry" /><img src="https://forum.clomosy.com.tr/smileys/smiley7.gif" border="0" alt="Angry" title="Angry" /></div><div>&nbsp; InitializeDatabase;</div><div>&nbsp; LoadDataToList;</div><div><br></div><div>&nbsp; kaloriFormInstance.Run;</div><div>}</div><div id="gtx-trans" style=": ; left: -39px; top: 2617.87px;"><div ="gtx-trans-ic&#111;n"></div></div>]]>
   </description>
   <pubDate>Mon, 11 Aug 2025 16:41:23 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1174&amp;PID=2487#2487</guid>
  </item> 
 </channel>
</rss>