<?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 : SQL ekleme</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : SQL ekleme]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 13:14:43 +0000</pubDate>
  <lastBuildDate>Mon, 21 Jul 2025 15:46:48 +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=1112</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[SQL ekleme : Merhaba Dilara ,bu ekranda &#231;eviri...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1112&amp;PID=2279#2279</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=310">Sudesigirci</a><br /><strong>Konu:</strong> 1112<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Temmuz&nbsp;2025 Saat 15:46<br /><br />Merhaba Dilara ,<div>bu ekranda çeviri yapıldığı için ayrı bir unit oluşturmanı tavsiye ederim oluşturduğun unitte aşağıdaki şekilde veritabanına kayıt ve giriş işlemleri yapabilirsin</div><div><br></div><div><div>var</div><div>&nbsp; girisForm: TclForm;</div><div>&nbsp; edtKullaniciAdi, edtSifre: TclProEdit;</div><div>&nbsp; btnGiris, btnKaydol: TclProButton;</div><div>&nbsp; aktifKullanici: String;</div><div>&nbsp; dbYolu: String;</div><div><br></div><div>void Kaydol;</div><div>var</div><div>&nbsp; kullanici, sifre: String;</div><div>{</div><div>&nbsp; kullanici = edtKullaniciAdi.Text;</div><div>&nbsp; sifre = edtSifre.Text;</div><div><br></div><div>&nbsp; if (kullanici == '' || sifre == '') {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen kullanıcı adı ve şifre girin!');</div><div>&nbsp;&nbsp;</div><div>&nbsp; }</div><div><br></div><div>&nbsp; try&nbsp;</div><div>&nbsp; &nbsp; dbYolu = Clomosy.AppFilesPath + 'Kullanicilar.db3';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(dbYolu, '');</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'CREATE TABLE IF NOT EXISTS kullanicilar (' +</div><div>&nbsp; &nbsp; &nbsp; 'id INTEGER PRIMARY KEY AUTOINCREMENT,' +</div><div>&nbsp; &nbsp; &nbsp; 'kullanici_adi TEXT UNIQUE,' +</div><div>&nbsp; &nbsp; &nbsp; 'sifre TEXT)';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'INSERT INTO kullanicilar (kullanici_adi, sifre) VALUES (' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(kullanici) + ',' + QuotedStr(sifre) + ')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; ShowMessage('Kayıt başarılı! Şimdi giriş yapabilirsiniz.');</div><div><br></div><div>&nbsp; &nbsp;except&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Kayıt hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GirisYap;</div><div>var</div><div>&nbsp; kullanici, sifre: String;</div><div>&nbsp; kayitSayisi: Integer;</div><div>{</div><div>&nbsp; kullanici = edtKullaniciAdi.Text;</div><div>&nbsp; sifre = edtSifre.Text;</div><div><br></div><div>&nbsp; try&nbsp;</div><div>&nbsp; &nbsp; dbYolu = Clomosy.AppFilesPath + 'Kullanicilar.db3';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(dbYolu, '');</div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'SELECT COUNT(*) AS adet FROM kullanicilar WHERE kullanici_adi = ' + QuotedStr(kullanici) +</div><div>&nbsp; &nbsp; &nbsp; ' AND sifre = ' + QuotedStr(sifre);</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; kayitSayisi = Clomosy.DBSQLiteQuery.FieldByName('adet').AsInteger;</div><div><br></div><div>&nbsp; &nbsp; if (kayitSayisi &gt; 0) {</div><div>&nbsp; &nbsp; &nbsp; aktifKullanici = kullanici;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Giriş başarılı! Hoş geldin: ' + aktifKullanici);</div><div>&nbsp; &nbsp; &nbsp; // Clomosy.RunUnit('ceviriyiyaptığın unit maindeyse 'main' şeklinde kullanabilirsin); // Sonraki ekran burada çağrılabilir</div><div>&nbsp; &nbsp; } else {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Hatalı kullanıcı adı veya şifre.');</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; except&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Giriş hatası: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; girisForm = TclForm.Create(Self);</div><div>&nbsp; girisForm.clSetCaption('Kullanıcı Giriş / Kayıt');</div><div><br></div><div>&nbsp; edtKullaniciAdi = girisForm.AddNewProEdit(girisForm, 'edtKullaniciAdi', 'Kullanıcı adı');</div><div>&nbsp; edtKullaniciAdi.Align = alTop;</div><div>&nbsp; edtKullaniciAdi.Height = 40;</div><div>&nbsp;&nbsp;</div><div><br></div><div>&nbsp; edtSifre = girisForm.AddNewProEdit(girisForm, 'edtSifre', 'şifre');</div><div>&nbsp; edtSifre.Align = alTop;</div><div>&nbsp; edtSifre.Height = 40;</div><div>&nbsp; edtSifre.Password = True;</div><div>&nbsp; edtSifre.SetclProSettings(edtSifre.clProSettings);</div><div><br></div><div>&nbsp; btnKaydol = girisForm.AddNewProButton(girisForm, 'btnKaydol', 'Kaydol');</div><div>&nbsp; btnKaydol.Align = alBottom;</div><div>&nbsp; btnKaydol.Height = 50;</div><div>&nbsp; girisForm.AddNewEvent(btnKaydol, tbeOnClick, 'Kaydol');</div><div><br></div><div>&nbsp; btnGiris = girisForm.AddNewProButton(girisForm, 'btnGiris', 'Giriş Yap');</div><div>&nbsp; btnGiris.Align = alBottom;</div><div>&nbsp; btnGiris.Height = 50;</div><div>&nbsp; girisForm.AddNewEvent(btnGiris, tbeOnClick, 'GirisYap');</div><div><br></div><div>&nbsp; girisForm.Run;</div><div>}</div></div><div>iyi çalışmalar dilerim</div>]]>
   </description>
   <pubDate>Mon, 21 Jul 2025 15:46:48 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1112&amp;PID=2279#2279</guid>
  </item> 
  <item>
   <title><![CDATA[SQL ekleme : sqllite ile veri taban&#305; eklemeye...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1112&amp;PID=2276#2276</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=320">dilarayaprak</a><br /><strong>Konu:</strong> 1112<br /><strong>Gönderim Zamanı:</strong> 21&nbsp;Temmuz&nbsp;2025 Saat 14:59<br /><br /><div>sqllite ile veri tabanı eklemeye çalışıyordum ancak aktif kullanıcıyı eklediğimde çalışmamaya başladı&nbsp;</div><div><br></div><div>var</div><div>&nbsp; kelimeForm: TclForm;</div><div>&nbsp; kartPanel: TclProPanel;</div><div>&nbsp; frontFace, backFace: TclProPanel;</div><div>&nbsp; lblEnglish, lblTurkish: TclProLabel;</div><div>&nbsp; kartImageFront, kartImageBack: TclProImage;</div><div>&nbsp; txtInput: TclProEdit;</div><div>&nbsp; btnSorgula: TclProButton;</div><div>&nbsp; restAI: TclRest;</div><div>&nbsp; aktifKullaniciAdi, prompt, veri, cevap: String;</div><div><br></div><div>void BtnSorgulaClick;</div><div>{</div><div>&nbsp; if (txtInput.Text == '') {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen bir kelime girin!');</div><div>&nbsp; } else {</div><div>&nbsp; &nbsp; lblEnglish.Caption = txtInput.Text;</div><div>&nbsp; &nbsp; lblTurkish.Caption = '';</div><div>&nbsp; &nbsp; backFace.Visible = False;</div><div>&nbsp; &nbsp; frontFace.Visible = True;</div><div><br></div><div>&nbsp; &nbsp; prompt = txtInput.Text;</div><div><br></div><div>&nbsp; &nbsp; restAI.BaseUrl = '<a href="https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateC&#111;ntent?key=xxxxxxxxxxxxxxxxxxxxxxxx" target="_blank" rel="nofollow">https://generativelanguage.googleapis.com/v1beta/models/gemini-2.0-flash:generateContent?key=xxxxxxxxxxxxxxxxxxxxxxxx</a>';</div><div>&nbsp; &nbsp; restAI.Method = rmPost;</div><div>&nbsp; &nbsp; restAI.ContentType = 'application/json';</div><div>&nbsp; &nbsp; restAI.Body =</div><div>&nbsp; &nbsp; &nbsp; '{' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; "contents": &#091;' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; {' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; "parts": &#091;' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; &nbsp; {' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "text": "Girilen kelimeyi Türkçeye çevir. Sadece çeviriyi yaz: ' + prompt + '"' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; &nbsp; }' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; &nbsp; &#093;' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &nbsp; }' +</div><div>&nbsp; &nbsp; &nbsp; '&nbsp; &#093;' +</div><div>&nbsp; &nbsp; &nbsp; '}';</div><div><br></div><div>&nbsp; &nbsp; restAI.ExecuteAsync;</div><div><br></div><div>&nbsp; &nbsp; txtInput.Text = '';</div><div>&nbsp; }</div><div>}</div><div><br></div><div>void GetAIResponse;</div><div>{</div><div>&nbsp; veri = restAI.Response;</div><div>&nbsp; cevap = Clomosy.CLParseJson(veri, 'candidates.0.content.parts.0.text');</div><div>&nbsp; lblTurkish.Text = cevap;</div><div>&nbsp; frontFace.Visible = False;</div><div>&nbsp; backFace.Visible = True;</div><div><br></div><div>&nbsp; ShowMessage('Çeviri: ' + cevap);</div><div><br></div><div>&nbsp; if (aktifKullaniciAdi == '') {</div><div>&nbsp; &nbsp; ShowMessage('HATA: Kullanıcı adı alınamadı. Önce giriş yapın.');</div><div>&nbsp; } else {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Close;</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'CREATE TABLE IF NOT EXISTS kartlar (id INTEGER PRIMARY KEY AUTOINCREMENT, kullanici_adi TEXT, english TEXT, turkish TEXT)';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div><br></div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.Close;</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text =</div><div>&nbsp; &nbsp; &nbsp; 'INSERT INTO kartlar (kullanici_adi, english, turkish) VALUES (' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(aktifKullaniciAdi) + ',' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(lblEnglish.Caption) + ',' +</div><div>&nbsp; &nbsp; &nbsp; QuotedStr(cevap) + ')';</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; &nbsp; ShowMessage('kart kaydedildi.');</div><div>&nbsp; }</div><div>}</div><div><br></div><div><br></div><div>void FlipCard;</div><div>{</div><div>&nbsp; if (frontFace.Visible == True) {</div><div>&nbsp; &nbsp; frontFace.Visible = False;</div><div>&nbsp; &nbsp; backFace.Visible = True;</div><div>&nbsp; } else {</div><div>&nbsp; &nbsp; frontFace.Visible = True;</div><div>&nbsp; &nbsp; backFace.Visible = False;</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; kelimeForm = TclForm.Create(Self);</div><div>&nbsp; kelimeForm.clSetCaption('İngilizce &#8594; Türkçe Kart');</div><div>&nbsp; kelimeForm.SetFormBGImage('<a href="https://i.imgur.com/fPwWs0H.jpeg" target="_blank" rel="nofollow">https://i.imgur.com/fPwWs0H.jpeg</a>');</div><div><br></div><div>&nbsp; restAI = TclRest.Create;</div><div>&nbsp; restAI.OnCompleted = 'GetAIResponse';</div><div><br></div><div>&nbsp; txtInput = kelimeForm.AddNewProEdit(kelimeForm, 'txtInput', '');</div><div>&nbsp; txtInput.Align = alTop;</div><div>&nbsp; txtInput.Margins.Top = 20;</div><div>&nbsp; txtInput.Height = 40;</div><div><br></div><div>&nbsp; btnSorgula = kelimeForm.AddNewProButton(kelimeForm, 'btnSorgula', 'ÇEVİR');</div><div>&nbsp; btnSorgula.Align = alTop;</div><div>&nbsp; btnSorgula.Height = 40;</div><div>&nbsp; kelimeForm.AddNewEvent(btnSorgula, tbeOnClick, 'BtnSorgulaClick');</div><div><br></div><div>&nbsp; kartPanel = kelimeForm.AddNewProPanel(kelimeForm, 'kartPanel');</div><div>&nbsp; kartPanel.Width = 300;</div><div>&nbsp; kartPanel.Height = 200;</div><div>&nbsp; kartPanel.Position.X = (kelimeForm.clWidth - kartPanel.Width) / 2;</div><div>&nbsp; kartPanel.Position.Y = (kelimeForm.clHeight - kartPanel.Height) / 2;</div><div>&nbsp; kartPanel.ClProSettings.RoundWidth = 20;</div><div>&nbsp; kartPanel.ClProSettings.RoundHeight = 20;</div><div>&nbsp; kartPanel.SetclProSettings(kartPanel.ClProSettings);</div><div><br></div><div>&nbsp; frontFace = kelimeForm.AddNewProPanel(kartPanel, 'frontFace');</div><div>&nbsp; frontFace.Align = alClient;</div><div>&nbsp; frontFace.Visible = True;</div><div><br></div><div>&nbsp; kartImageFront = kelimeForm.AddNewProImage(frontFace, 'kartImageFront');</div><div>&nbsp; kartImageFront.Align = alClient;</div><div>&nbsp; kartImageFront.ClProSettings.PictureSource = '<a href="https://i.imgur.com/wLCaAxp.png" target="_blank" rel="nofollow">https://i.imgur.com/wLCaAxp.png</a>';</div><div>&nbsp; kartImageFront.SetclProSettings(kartImageFront.ClProSettings);</div><div><br></div><div>&nbsp; lblEnglish = kelimeForm.AddNewProLabel(frontFace, 'lblEnglish', '');</div><div>&nbsp; lblEnglish.Align = alCenter;</div><div>&nbsp; lblEnglish.ClProSettings.FontSize = 26;</div><div>&nbsp; lblEnglish.ClProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; lblEnglish.SetclProSettings(lblEnglish.ClProSettings);</div><div><br></div><div>&nbsp; backFace = kelimeForm.AddNewProPanel(kartPanel, 'backFace');</div><div>&nbsp; backFace.Align = alClient;</div><div>&nbsp; backFace.Visible = False;</div><div><br></div><div>&nbsp; kartImageBack = kelimeForm.AddNewProImage(backFace, 'kartImageBack');</div><div>&nbsp; kartImageBack.Align = alClient;</div><div>&nbsp; kartImageBack.ClProSettings.PictureSource = '<a href="https://i.imgur.com/wLCaAxp.png" target="_blank" rel="nofollow">https://i.imgur.com/wLCaAxp.png</a>';</div><div>&nbsp; kartImageBack.SetclProSettings(kartImageBack.ClProSettings);</div><div><br></div><div>&nbsp; lblTurkish = kelimeForm.AddNewProLabel(backFace, 'lblTurkish', '');</div><div>&nbsp; lblTurkish.Align = alCenter;</div><div>&nbsp; lblTurkish.ClProSettings.FontSize = 26;</div><div>&nbsp; lblTurkish.ClProSettings.FontColor = clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; lblTurkish.SetclProSettings(lblTurkish.ClProSettings);</div><div><br></div><div>&nbsp; kelimeForm.AddNewEvent(kartPanel, tbeOnClick, 'FlipCard');</div><div><br></div><div>&nbsp; kelimeForm.Run;</div><div>}</div>]]>
   </description>
   <pubDate>Mon, 21 Jul 2025 14:59:35 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1112&amp;PID=2276#2276</guid>
  </item> 
 </channel>
</rss>