<?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 : TclProDateEdit ile veritabanına kayıt</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : TclProDateEdit ile veritabanına kayıt]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 13:14:39 +0000</pubDate>
  <lastBuildDate>Fri, 04 Jul 2025 18:11:03 +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=1051</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[TclProDateEdit ile veritabanına kayıt : Merhaba Ceren,Harcamalar tablonda...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1051&amp;PID=2119#2119</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 1051<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Temmuz&nbsp;2025 Saat 18:11<br /><br />Merhaba Ceren,<div><br></div><div>Harcamalar tablonda bulunan tarih alanının date veya datetime formatında olduğunu varsayarak ilerliyorum. Öncelikle girilenTarih değişkenini TclDateTime olarak kullanmanı tavsiye ederim. Atama kısmında .text yerine .DateStr kullanman daha doğru olur. Sqlite içerisinde date tipinde alanlar&nbsp;<span style="font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; color: rgb12, 13, 14; font-size: 15px;">YYYY-MM-DD formatında veri beklerler. Fakat TclProDateEdit DD.MM.YYYY tipinde bir veri verir. Bu durumda gelen veriyi formatlayarak istenilen formata getirmen gerekir. Bunun için aşağıdaki sayfalardan yardım alarak problemi kolaylıkla çözebileceğini düşünüyorum.</span></div><div><span style="font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; color: rgb12, 13, 14; font-size: 15px;"><br></span></div><div><span style="font-family: inherit; font-style: inherit; font-variant-ligatures: inherit; font-variant-caps: inherit; font-weight: inherit; color: rgb12, 13, 14; font-size: 15px;"><a href="https://www.docs.clomosy.com/&#070;ormatDateTime" target="_blank" rel="nofollow">https://www.docs.clomosy.com/FormatDateTime</a><br></span></div><div><a href="https://www.docs.clomosy.com/DecodeDate" target="_blank" rel="nofollow">https://www.docs.clomosy.com/DecodeDate</a></div><div><br></div><div>İyi çalışmalar dilerim.</div>]]>
   </description>
   <pubDate>Fri, 04 Jul 2025 18:11:03 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1051&amp;PID=2119#2119</guid>
  </item> 
  <item>
   <title><![CDATA[TclProDateEdit ile veritabanına kayıt : void HarcamaKaydet;var  girilenTutar:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1051&amp;PID=2096#2096</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=306">cerenn</a><br /><strong>Konu:</strong> 1051<br /><strong>Gönderim Zamanı:</strong> 03&nbsp;Temmuz&nbsp;2025 Saat 15:51<br /><br /><div>void HarcamaKaydet;</div><div>var</div><div>&nbsp; &nbsp; girilenTutar: Real;</div><div>&nbsp; &nbsp; girilenTarih: String;</div><div>&nbsp; &nbsp; secilenKategoriID: Integer;</div><div>&nbsp; &nbsp; sqlSorgu: String;</div><div>{</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if((guncelTutarEdit == nil) || (guncelTarihEdit == nil) || (guncelKategoriBtn == nil) ){</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Form elemanları bulunamadı!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; girilenTutar = StrToFloat(guncelTutarEdit.Text);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Lütfen geçerli bir tutar giriniz!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; girilenTarih =guncelTarihEdit.Text;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; //girilenTarih=guncelTarihEdit.DateStr;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; secilenKategoriID = guncelKategoriBtn.ClTagInt;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (girilenTutar &lt;= 0) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Tutar sıfırdan büyük olmalıdır!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (secilenKategoriID &lt;= 0) {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Lütfen bir kategori seçiniz!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (girilenTarih == '') {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Lütfen bir tarih seçiniz!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'ncyyn.db3', '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; sqlSorgu = 'INSERT INTO harcamalar (kategori_id, tutar, tarih) VALUES (' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;IntToStr(secilenKategoriID) + ', ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FloatToStr(girilenTutar) + ', ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(girilenTarih) + ')';</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith(sqlSorgu);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.Free;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Harcama kaydedildi!');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;-</div><div>&nbsp; &nbsp; &nbsp; &nbsp; tumHarcamalariYukle;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Harcama kaydetme hatası: ' + LastExceptionClassName + ' - ' + LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>}Merhaba,böyle bir fonksiyonum var .guncelTutarEdit,guncelTarihEdit ,guncelKategoriBtn global değiskenler.Başka bir fonksiyonda nesneleri oluşturuyorum.guncelTarihEdit TclProDateEdit ile tanımladım.Tarih seçmeme rağmen Lütfen bir tarih seçiniz!hatası alıyorum.Yorum satırındaki şekilde denediğimde de SQL hatası alıyorum.Bir dönüşüm yapmam gerek sanırım ama,bilemedim.Yardımcı olursanız çok sevinirim.</div>]]>
   </description>
   <pubDate>Thu, 03 Jul 2025 15:51:12 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1051&amp;PID=2096#2096</guid>
  </item> 
 </channel>
</rss>