<?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 : Kod Bloğunda Hata</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Kod Bloğunda Hata]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 18:59:39 +0000</pubDate>
  <lastBuildDate>Mon, 04 May 2026 17:22:14 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1468</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[Kod Bloğunda Hata : Merhaba Kaan,Hatan&#305;n genel sebebi...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1468&amp;PID=3342#3342</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> 1468<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Mayıs&nbsp;2026 Saat 17:22<br /><br />Merhaba Kaan,<br><br>Hatanın genel sebebi Barkod okutma sırasında veya kaydetme sırasında hata almanın temel sebebi <span -path-to-node="5" -index-in-node="74" style="">Veritabanı Bağlantı</span> yöntemidir.&nbsp;<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v8c78df7c7c0f484497ecbca7046644da1771523124516"</a> integrity="sha512-8DS7rgIrAmghBFwoOTujcf6D9rXvH8xm8JQ1Ja01h9QX8EzXldiszufYa4IFfKdLUKTTrnSFXLDkUEOTrZQ8Qg==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous"><div>Clomosy'de yerel veritabanı işlemleri için DBSQLiteConnect veya TclSQLiteQuery kullanmalısın.&nbsp;<br><br>Önce güvenli bir veritabanı bağlantısı sağlayacağız, daha kapsamlı bir veritabanı tablosu ve barkod okuyucuyu doğrudan kutucuğa aktarıcaz.&nbsp;<br><div>var</div><div>&nbsp; MyForm: TclForm;</div><div>&nbsp; EdtBarcode, EdtBookName, EdtAuthor, EdtDate: TclProEdit;</div><div>&nbsp; ScanBtn, SaveBtn: TclProButton;</div><div>&nbsp; BookListMemo: TclMemo;</div><div><br></div><div>void ReadBarcode;</div><div>{</div><div>&nbsp; MyForm.CallBarcodeReader(EdtBarcode);</div><div>}</div><div><br></div><div>void ListBooks;</div><div>var</div><div>&nbsp; Qry: TclSQLiteQuery;</div><div>{</div><div>&nbsp; BookListMemo.Lines.Clear;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Qry = TclSQLiteQuery.Create(Nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Qry.Connection = Clomosy.DBSQLiteConnection;</div><div>&nbsp; &nbsp; Qry.Sql.Text = 'SELECT * FROM Books';</div><div>&nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; while (not Qry.EOF)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; BookListMemo.Lines.Add('Barkod: ' + Qry.FieldByName('barcode').AsString +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;' | Kitap: ' + Qry.FieldByName('book_name').AsString +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;' | Yazar: ' + Qry.FieldByName('author_name').AsString);</div><div>&nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; Qry.Free;&nbsp;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void SaveToDatabase;</div><div>var</div><div>&nbsp; InsertQry: TclSQLiteQuery;</div><div>{</div><div>&nbsp; if ((EdtBarcode.Text == '') || (EdtBookName.Text == ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen en azından barkod ve kitap adı alanlarını doldurun.');</div><div>&nbsp; &nbsp; Exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; InsertQry = TclSQLiteQuery.Create(Nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; InsertQry.Connection = Clomosy.DBSQLiteConnection;</div><div>&nbsp; &nbsp; InsertQry.Sql.Text = 'INSERT INTO Books (barcode, book_name, author_name, purchase_date) VALUES (' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(EdtBarcode.Text) + ', ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(EdtBookName.Text) + ', ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(EdtAuthor.Text) + ', ' +&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;QuotedStr(EdtDate.Text) + ')';</div><div>&nbsp; &nbsp; InsertQry.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Kayıt Başarılı: ' + EdtBookName.Text);</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; EdtBarcode.Text = '';</div><div>&nbsp; &nbsp; EdtBookName.Text = '';</div><div>&nbsp; &nbsp; EdtAuthor.Text = '';</div><div>&nbsp; &nbsp; EdtDate.Text = '';</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ListBooks;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; InsertQry.Free;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void SetupDatabase;</div><div>{</div><div>&nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'LibraryDB.db', '');</div><div>&nbsp;&nbsp;</div><div>&nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE IF NOT EXISTS Books (book_id INTEGER PRIMARY KEY AUTOINCREMENT, barcode TEXT, book_name TEXT, author_name TEXT, purchase_date TEXT)';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; MyForm.SetFormColor('#F8FAFC', '', clGNone);</div><div><br></div><div>&nbsp; SetupDatabase;</div><div><br></div><div>&nbsp; EdtBarcode = MyForm.AddNewProEdit(MyForm, 'EdtBarcode', 'Barkod Numarası...');</div><div>&nbsp; EdtBarcode.Align = alTop;</div><div>&nbsp; EdtBarcode.Margins.Top = 15; EdtBarcode.Margins.Left = 15; EdtBarcode.Margins.Right = 15;</div><div>&nbsp; EdtBarcode.Height = 40;</div><div><br></div><div>&nbsp; ScanBtn = MyForm.AddNewProButton(MyForm, 'ScanBtn', 'BARKODU TARAT');</div><div>&nbsp; ScanBtn.Align = alTop;</div><div>&nbsp; ScanBtn.Margins.Top = 5; ScanBtn.Margins.Left = 15; ScanBtn.Margins.Right = 15;</div><div>&nbsp; ScanBtn.Height = 45;</div><div>&nbsp; ScanBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#2563EB');&nbsp;</div><div>&nbsp; ScanBtn.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; ScanBtn.clProSettings.IsRound = True; ScanBtn.clProSettings.RoundHeight = 8;</div><div>&nbsp; ScanBtn.SetclProSettings(ScanBtn.clProSettings);</div><div>&nbsp; MyForm.AddNewEvent(ScanBtn, tbeOnClick, 'ReadBarcode');</div><div><br></div><div>&nbsp; EdtBookName = MyForm.AddNewProEdit(MyForm, 'EdtBookName', 'Kitap Adı...');</div><div>&nbsp; EdtBookName.Align = alTop;</div><div>&nbsp; EdtBookName.Margins.Top = 10; EdtBookName.Margins.Left = 15; EdtBookName.Margins.Right = 15;</div><div>&nbsp; EdtBookName.Height = 40;</div><div><br></div><div>&nbsp; EdtAuthor = MyForm.AddNewProEdit(MyForm, 'EdtAuthor', 'Yazar Adı...');</div><div>&nbsp; EdtAuthor.Align = alTop;</div><div>&nbsp; EdtAuthor.Margins.Top = 10; EdtAuthor.Margins.Left = 15; EdtAuthor.Margins.Right = 15;</div><div>&nbsp; EdtAuthor.Height = 40;</div><div><br></div><div>&nbsp; EdtDate = MyForm.AddNewProEdit(MyForm, 'EdtDate', 'Alış Tarihi (Örn: 04.05.2026)...');</div><div>&nbsp; EdtDate.Align = alTop;</div><div>&nbsp; EdtDate.Margins.Top = 10; EdtDate.Margins.Left = 15; EdtDate.Margins.Right = 15;</div><div>&nbsp; EdtDate.Height = 40;</div><div><br></div><div>&nbsp; SaveBtn = MyForm.AddNewProButton(MyForm, 'SaveBtn', 'KÜTÜPHANEYE KAYDET');</div><div>&nbsp; SaveBtn.Align = alTop;</div><div>&nbsp; SaveBtn.Margins.Top = 20; SaveBtn.Margins.Left = 15; SaveBtn.Margins.Right = 15;</div><div>&nbsp; SaveBtn.Height = 50;</div><div>&nbsp; SaveBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#10B981');&nbsp;</div><div>&nbsp; SaveBtn.clProSettings.FontColor = clAlphaColor.clWhite;</div><div>&nbsp; SaveBtn.clProSettings.IsRound = True; SaveBtn.clProSettings.RoundHeight = 8;</div><div>&nbsp; SaveBtn.SetclProSettings(SaveBtn.clProSettings);</div><div>&nbsp; MyForm.AddNewEvent(SaveBtn, tbeOnClick, 'SaveToDatabase');</div><div><br></div><div>&nbsp; BookListMemo = MyForm.AddNewMemo(MyForm, 'BookListMemo', '');</div><div>&nbsp; BookListMemo.Align = alClient;</div><div>&nbsp; BookListMemo.Margins.Top = 15; BookListMemo.Margins.Bottom = 15;</div><div>&nbsp; BookListMemo.Margins.Left = 15; BookListMemo.Margins.Right = 15;</div><div>&nbsp; BookListMemo.ReadOnly = True;</div><div><br></div><div>&nbsp; ListBooks;</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>}<br><br><br><br><br></div><br></div>]]>
   </description>
   <pubDate>Mon, 04 May 2026 17:22:14 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1468&amp;PID=3342#3342</guid>
  </item> 
  <item>
   <title><![CDATA[Kod Bloğunda Hata : Merhaba kolay gelsin projmemin...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1468&amp;PID=3338#3338</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=384">Kaan26</a><br /><strong>Konu:</strong> 1468<br /><strong>Gönderim Zamanı:</strong> 04&nbsp;Mayıs&nbsp;2026 Saat 15:30<br /><br /><div>Merhaba kolay gelsin projmemin amacı bir kütüphanede yardımcı olmak için kitapların arkasındaki bardodu okuyup direk verileri kendi haznesine kaydetmesi keydederken kitap adı yazar adı alış tariğhi gibi verilerinde girilmesini istiyorum fakat barkod kısmına ne kadar çok denesemde her seferinde hata alıyorum.</div><div>İlgilenirseniz sevinirim<img src="https://forum.clomosy.com.tr/smileys/smiley1.gif" border="0" alt="Smile" title="Smile" />.</div><div>///////////////////////////////////////////////////////////////////////////////////////////////////</div><div><br></div><div><br></div><div>var</div><div>&nbsp; MyForm: TclForm;</div><div>&nbsp; BookNameEdit: TclEdit;</div><div>&nbsp; ScanBtn, PhotoBtn, SaveBtn: TclButton;</div><div>&nbsp; BookListMemo: TclMemo;</div><div>&nbsp; CameraImg: TclImage;</div><div>&nbsp; QRGen: TclQRCodeGenerator;</div><div>&nbsp; MyData: TclSQLite;</div><div>&nbsp; Qry: TclSQLiteQuery;</div><div><br></div><div>// Barkod okuyucuyu çalıştırır ve sonucu Edit içine yazar</div><div>void ReadBarcode;</div><div>{</div><div>&nbsp; MyForm.CallBarcodeReader(BookNameEdit);</div><div>}</div><div><br></div><div>// Galeriden resim seçer</div><div>void onPhotoClick;</div><div>{</div><div>&nbsp; Clomosy.ImageChooser(MyForm, CameraImg);</div><div>}</div><div><br></div><div>// Veritabanındaki kitapları listeler (Uygulama açılışında verileri geri getirir)</div><div>void ListBooks;</div><div>{</div><div>&nbsp; BookListMemo.Lines.Clear;</div><div>&nbsp; Qry = MyData.clSelQuery('SELECT book_name FROM Books');</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (Qry.Found)</div><div>&nbsp; {</div><div>&nbsp; &nbsp; while (not Qry.EOF)</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; BookListMemo.Lines.Add('- ' + Qry.FieldByName('book_name').AsString);</div><div>&nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// Veriyi SQLite'a kaydeder ve QR kodu oluşturur</div><div>void SaveToDatabase;</div><div>{</div><div>&nbsp; if (BookNameEdit.Text &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; // Veriyi yerel veritabanına ekle</div><div>&nbsp; &nbsp; MyData.clExecuteQuery('INSERT INTO Books (book_name) VALUES (''' + BookNameEdit.Text + ''')');&#091;cite: 1&#093;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; // QR Kodu dokümana uygun şekilde oluştur&#091;cite: 1&#093;</div><div>&nbsp; &nbsp; QRGen.clGenerate(BookNameEdit.Text);&#091;cite: 1&#093;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Kayıt Başarılı: ' + BookNameEdit.Text);</div><div>&nbsp; &nbsp; BookNameEdit.Text = '';</div><div>&nbsp; &nbsp; ListBooks;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MyForm = TclForm.Create(Self);</div><div><br></div><div>&nbsp; // --- SQLite Yapılandırması (Veri Kalıcılığı İçin) ---</div><div>&nbsp; MyData = TclSQLite.Create(Self);</div><div>&nbsp; MyData.DatabaseName = 'LibraryStorage';&#091;cite: 1&#093;</div><div>&nbsp; MyData.clExecuteQuery('CREATE TABLE IF NOT EXISTS Books (book_id INTEGER PRIMARY KEY, book_name TEXT)');&#091;cite: 1&#093;</div><div><br></div><div>&nbsp; BookNameEdit = MyForm.AddNewEdit(MyForm, 'BookNameEdit', 'Barkod Bekleniyor...');</div><div>&nbsp; BookNameEdit.Align = alTop;</div><div><br></div><div>&nbsp; ScanBtn = MyForm.AddNewButton(MyForm, 'ScanBtn', 'BARKOD TARAT');</div><div>&nbsp; ScanBtn.Align = alTop;</div><div>&nbsp; MyForm.AddNewEvent(ScanBtn, tbeOnClick, 'ReadBarcode');&#091;cite: 1&#093;</div><div><br></div><div>&nbsp; PhotoBtn = MyForm.AddNewButton(MyForm, 'PhotoBtn', 'RESİM SEÇ');</div><div>&nbsp; PhotoBtn.Align = alTop;</div><div>&nbsp; MyForm.AddNewEvent(PhotoBtn, tbeOnClick, 'onPhotoClick');&#091;cite: 1&#093;</div><div><br></div><div>&nbsp; SaveBtn = MyForm.AddNewButton(MyForm, 'SaveBtn', 'VERİTABANINA KAYDET');</div><div>&nbsp; SaveBtn.Align = alTop;</div><div>&nbsp; MyForm.AddNewEvent(SaveBtn, tbeOnClick, 'SaveToDatabase');&#091;cite: 1&#093;</div><div><br></div><div>&nbsp; CameraImg = MyForm.AddNewImage(MyForm, 'CameraImg');</div><div>&nbsp; CameraImg.Align = alTop;</div><div>&nbsp; CameraImg.Height = 150;</div><div><br></div><div>&nbsp; // QR Kod Üretici Tanımlama&#091;cite: 1&#093;</div><div>&nbsp; QRGen = MyForm.AddNewQRCodeGenerator(MyForm, 'QRGen', 'Barkod QR');&#091;cite: 1&#093;</div><div>&nbsp; QRGen.Align = alTop;</div><div>&nbsp; QRGen.Height = 150;</div><div><br></div><div>&nbsp; BookListMemo = MyForm.AddNewMemo(MyForm, 'BookListMemo', '');</div><div>&nbsp; BookListMemo.Align = alClient;</div><div>&nbsp; BookListMemo.ReadOnly = True;</div><div><br></div><div>&nbsp; // Uygulama her açıldığında kayıtları yükle&#091;cite: 1&#093;</div><div>&nbsp; ListBooks;&#091;cite: 1&#093;</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Mon, 04 May 2026 15:30:43 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1468&amp;PID=3338#3338</guid>
  </item> 
 </channel>
</rss>