<?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 Hatası</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : TclForm Olu&#351;turma : Kod Hatası]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Fri, 01 May 2026 19:22:53 +0000</pubDate>
  <lastBuildDate>Mon, 26 May 2025 22:26: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=1028</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 Hatası : Merhaba G&#252;l&#351;en,Birimlerin main...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1028&amp;PID=2054#2054</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> 1028<br /><strong>Gönderim Zamanı:</strong> 26&nbsp;Mayıs&nbsp;2025 Saat 22:26<br /><br />Merhaba Gülşen,<br>Birimlerin main bloğunu koymamışsın, void içinde form oluşturmuşsun, main bloğunda çağırman gerekmektedir. Bir örneğini ben yaptım, diğer birimde de düzeltme sağlarsın.<br><div>var</div><div>&nbsp; AddForm: TclForm;</div><div>&nbsp; EnglishEdt, TurkishEdt: TclProEdit;</div><div>&nbsp; SaveBtn: TclProButton;</div><div><br></div><div>void SaveWordData;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if ((EnglishEdt.Text == '') || (TurkishEdt.Text == ''))</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Lütfen tüm alanları doldurunuz!');</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TBLWORDS (English, Turkish) VALUES (''' + EnglishEdt.Text + ''', ''' + TurkishEdt.Text + ''');';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; ShowMessage('Kelimeniz başarıyla kaydedildi!');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; EnglishEdt.Text = '';</div><div>&nbsp; &nbsp; TurkishEdt.Text = '';</div><div>&nbsp; }</div><div>&nbsp; except</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Kaydetme hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div>}</div><div><br></div><div>{</div><div>&nbsp; AddForm = TclForm.Create(Self);</div><div>&nbsp; AddForm.SetFormBGImage('<a href="https://resmim.net/cdn/2025/05/20/TfXT6y.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/05/20/TfXT6y.png</a>');</div><div>&nbsp;&nbsp;</div><div>&nbsp; EnglishEdt = AddForm.AddNewProEdit(AddForm, 'edtEnglish', 'İngilizce kelimeyi giriniz...');</div><div>&nbsp; EnglishEdt.Align = alTop;</div><div>&nbsp; EnglishEdt.Margins.Top = 20;</div><div>&nbsp; EnglishEdt.Margins.Left = 10;</div><div>&nbsp; EnglishEdt.Margins.Right = 10;</div><div>&nbsp; EnglishEdt.Height = 50;</div><div>&nbsp;&nbsp;</div><div>&nbsp; TurkishEdt = AddForm.AddNewProEdit(AddForm, 'edtTurkish', 'Türkçe karşılığını giriniz...');</div><div>&nbsp; TurkishEdt.Align = alTop;</div><div>&nbsp; TurkishEdt.Margins.Top = 10;</div><div>&nbsp; TurkishEdt.Margins.Left = 10;</div><div>&nbsp; TurkishEdt.Margins.Right = 10;</div><div>&nbsp; TurkishEdt.Height = 50;</div><div>&nbsp;&nbsp;</div><div>&nbsp; SaveBtn = AddForm.AddNewProButton(AddForm, 'btnSaveWord', 'Kaydet');</div><div>&nbsp; SaveBtn.Align = alTop;</div><div>&nbsp; SaveBtn.Margins.Top = 20;</div><div>&nbsp; SaveBtn.Margins.Left = 10;</div><div>&nbsp; SaveBtn.Margins.Right = 10;</div><div>&nbsp; SaveBtn.Height = 50;</div><div>&nbsp; SaveBtn.clProSettings.BackgroundColor = clAlphaColor.clHexToColor('#4CAF50');</div><div>&nbsp; SaveBtn.clProSettings.FontColor = clAlphaColor.clHexToColor('#FFFFFF');</div><div>&nbsp; AddForm.AddNewEvent(SaveBtn, tbeOnClick, 'SaveWordData');</div><div>&nbsp;&nbsp;</div><div>&nbsp; AddForm.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Mon, 26 May 2025 22:26:17 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1028&amp;PID=2054#2054</guid>
  </item> 
  <item>
   <title><![CDATA[Kod Hatası : MAIN CODE:// --- Veritaban&#305; Ba&#287;lant&#305;s&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1028&amp;PID=2053#2053</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=296">Gulsen</a><br /><strong>Konu:</strong> 1028<br /><strong>Gönderim Zamanı:</strong> 26&nbsp;Mayıs&nbsp;2025 Saat 20:12<br /><br />MAIN CODE:<div><div>// --- Veritabanı Bağlantısı ve Tablo Oluşturma Fonksiyonu ---</div><div>void SqLiteConnectionCreateTable;</div><div>var</div><div>&nbsp; TableExists: Boolean;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'DBWORDS.db3', '');</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="TBLWORDS";';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; TableExists = not Clomosy.DBSQLiteQuery.Eof;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; if not TableExists</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE TBLWORDS(WordID INTEGER NOT NULL, English TEXT NOT NULL, Turkish TEXT NOT NULL)';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Tablo başarıyla oluşturuldu!');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Tablo zaten mevcut.');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; except</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Tablo oluşturma hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div>// --- Olay Fonksiyonları ---</div><div>void OpenAddWordUnit;</div><div>{</div><div>&nbsp; Clomosy.RunUnit('AddWordUnit');&nbsp; // AddWordUnit adlı unit açılır.</div><div>}</div><div><br></div><div>void OpenListWordUnit;</div><div>{</div><div>&nbsp; Clomosy.RunUnit('ListWordUnit');&nbsp; // ListWordUnit adlı unit açılır.</div><div>}</div><div><br></div><div>// --- Ana Ekran (Main Screen) ---</div><div>var</div><div>&nbsp; Form1: TclForm;</div><div>&nbsp; AddWordBtn, ListBtn: TclButton;</div><div><br></div><div>{</div><div>&nbsp; Form1 = TclForm.Create(Self);</div><div><br></div><div>&nbsp; // "Kelime Kaydet" butonunu oluştur</div><div>&nbsp; AddWordBtn = Form1.AddNewButton(Form1, 'btnAddWord', 'Kelime Kaydet');</div><div>&nbsp; AddWordBtn.Align = alTop;</div><div>&nbsp; AddWordBtn.Margins.Top = 20;</div><div>&nbsp; AddWordBtn.Height = 50;</div><div>&nbsp; Form1.AddNewEvent(AddWordBtn,tbeOnClick,'OpenAddWordUnit');</div><div><br></div><div>&nbsp; // "Listem" butonunu oluştur</div><div>&nbsp; ListBtn = Form1.AddNewButton(Form1, 'btnListWord', 'Listem');</div><div>&nbsp; ListBtn.Align = alTop;</div><div>&nbsp; ListBtn.Margins.Top = 10;</div><div>&nbsp; ListBtn.Height = 50;</div><div>&nbsp; Form1.AddNewEvent(ListBtn,tbeOnClick,'OpenListWordUnit');</div><div>&nbsp;&nbsp;</div><div>&nbsp; SqLiteConnectionCreateTable;</div><div>&nbsp;&nbsp;</div><div>&nbsp; Form1.Run;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>}</div></div><div><br></div><div>ADDWORDUNİT:</div><div>----------------------</div><div><br></div><div><div>var</div><div>&nbsp; AddForm: TclForm;</div><div>&nbsp; EnglishEdt, TurkishEdt: TclEdit;</div><div>&nbsp; SaveBtn: TclButton;</div><div><br></div><div>void AddWordUnit;</div><div>{</div><div>&nbsp; // Kelime ekleme formunu oluştur</div><div>&nbsp; AddForm = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // İngilizce kelime giriş alanı</div><div>&nbsp; EnglishEdt = AddForm.AddNewEdit(AddForm, 'edtEnglish', 'İngilizce kelimeyi giriniz...');</div><div>&nbsp; EnglishEdt.Align = alTop;</div><div>&nbsp; EnglishEdt.Margins.Top = 20;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Türkçe karşılık giriş alanı</div><div>&nbsp; TurkishEdt = AddForm.AddNewEdit(AddForm, 'edtTurkish', 'Türkçe karşılığını giriniz...');</div><div>&nbsp; TurkishEdt.Align = alTop;</div><div>&nbsp; TurkishEdt.Margins.Top = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // "Kaydet" butonunu oluştur</div><div>&nbsp; SaveBtn = AddForm.AddNewButton(AddForm, 'btnSaveWord', 'Kaydet');</div><div>&nbsp; SaveBtn.Align = alTop;</div><div>&nbsp; SaveBtn.Margins.Top = 10;</div><div>&nbsp; SaveBtn.Height = 50;</div><div>&nbsp; AddForm.AddNewEvent(SaveBtn, tbeOnClick, 'SaveWordData');</div><div>&nbsp;&nbsp;</div><div>&nbsp; AddForm.Run;</div><div>}</div><div><br></div><div>void SaveWordData;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; // Veritabanına INSERT sorgusu ile ekle</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'INSERT INTO TBLWORDS (English, Turkish) VALUES (''' + EnglishEdt.Text + ''', ''' + TurkishEdt.Text + ''');';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; ShowMessage('Kelimeniz başarıyla kaydedildi!');</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; //AddForm.Close;</div><div>&nbsp; }</div><div>&nbsp; except</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Kaydetme hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>}</div><div>{</div><div>&nbsp; AddWordUnit;</div><div>&nbsp; SaveWordData;</div><div>}</div><div><br></div><div>ListWordUnit:</div></div><div>-------------------</div><div><br></div><div><div>// 4. Kelime Listeleme Birimi (ListWordUnit)</div><div>var</div><div>&nbsp; ListForm: TclForm;</div><div>&nbsp; WordListView: TclListView;</div><div>&nbsp;&nbsp;</div><div>&nbsp; void GetWordData;</div><div>var</div><div>&nbsp; Qry: TClSQLiteQuery;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT WordID as RECORD_GUID, English as MAIN_TEXT, Turkish as FOOTER_TEXT FROM TBLWORDS');</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; WordListView.clLoadListViewDataFromDataset(Qry);</div><div>&nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; except</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Veri çekme hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void ListWordUnit;</div><div>{</div><div>&nbsp; // Listeleme formunu oluştur</div><div>&nbsp; ListForm = TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; // ListView bileşenini ekle</div><div>&nbsp; WordListView = ListForm.AddNewListView(ListForm, 'WordListView');</div><div>&nbsp; WordListView.Align = alClient;</div><div>&nbsp; WordListView.Margins.Left = 5;</div><div>&nbsp; WordListView.Margins.Top = 5;</div><div>&nbsp; WordListView.Margins.Right = 5;</div><div>&nbsp; WordListView.Margins.Bottom = 5;</div><div>&nbsp;&nbsp;</div><div>&nbsp; // Verileri yükle</div><div>&nbsp; GetWordData;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ListForm.Run;</div><div>}</div><div>{</div><div>&nbsp; GetWordData;</div><div>&nbsp; ListWordUnit;</div><div>}</div></div><div><br></div><div>Birimler açılıyor ama kaydetme hatası veriyor</div><div>Kaydetme Hatası: &#091;FireADC&#093;&#091;Phys&#093;&#091;SQLite&#093; ERROR: NOT NULL constraint failed: TBLWORDS.WordID</div><div><br></div>]]>
   </description>
   <pubDate>Mon, 26 May 2025 20:12:16 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1028&amp;PID=2053#2053</guid>
  </item> 
 </channel>
</rss>