<?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 : Sil butonuna basınca en son satırı siliyior</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Sil butonuna basınca en son satırı siliyior]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 10:53:07 +0000</pubDate>
  <lastBuildDate>Tue, 19 Aug 2025 22:57:53 +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=1186</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[Sil butonuna basınca en son satırı siliyior : Merhaba Kerem,A&#351;a&#287;&#305;da b&#305;rakt&#305;&#287;&#305;m...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1186&amp;PID=2521#2521</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> 1186<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Ağustos&nbsp;2025 Saat 22:57<br /><br />Merhaba Kerem,&nbsp;<br>Aşağıda bıraktığım prosedür inceleyip koduna entegre edebilir misin?&nbsp;<br><div>// Liste öğesine tıklandığında</div><div>void onItemClicked</div><div>{</div><div>&nbsp; UrunAdiEdt.Text = clGetStringAfter(PListView.clSelectedItemData(clText4), ': ');</div><div>&nbsp; BarkodEdt.Text = clGetStringAfter(PListView.clSelectedItemData(clText), ': ');</div><div>&nbsp; KategoriEdt.Text = clGetStringAfter(PListView.clSelectedItemData(clText1), ': ');</div><div>&nbsp; FiyatEdt.Text = clGetStringAfter(PListView.clSelectedItemData(clText2), ': ');</div><div>&nbsp; StokMiktariEdt.Text = clGetStringAfter(PListView.clSelectedItemData(clText3), ': ');</div><div>}</div><div><br></div><div>// Veri silme</div><div>void DataDelete</div><div>{</div><div>&nbsp; try</div><div>&nbsp; {</div><div>&nbsp; &nbsp; if (BarkodEdt.Text &lt;&gt; '')</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'Delete From StokTakip where Barkod = ' + QuotedStr(BarkodEdt.Text);</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; GetData;</div><div>&nbsp; &nbsp; &nbsp; ClearEdtText;</div><div>&nbsp; &nbsp; }</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Silinecek ürün seçilmedi!');</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; ShowMessage('Hata: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div>]]>
   </description>
   <pubDate>Tue, 19 Aug 2025 22:57:53 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1186&amp;PID=2521#2521</guid>
  </item> 
  <item>
   <title><![CDATA[Sil butonuna basınca en son satırı siliyior :  var MainForm: TclForm; testpnl:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1186&amp;PID=2520#2520</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=342">kerem_3</a><br /><strong>Konu:</strong> 1186<br /><strong>Gönderim Zamanı:</strong> 19&nbsp;Ağustos&nbsp;2025 Saat 14:18<br /><br /><div><div>var</div><div>&nbsp; MainForm: TclForm;</div><div>&nbsp; testpnl: TclProPanel;</div><div>&nbsp; VerticalScrollBox: TclVertScrollBox;</div><div>&nbsp; BtnAdd,BtnDelete,BtnSelect: TClProButton;</div><div>&nbsp; query: TclSQLiteQuery;</div><div>&nbsp; TitleLbl: TClProLabel;</div><div>&nbsp; nameLbl, plateLbl: TClProLabel;</div><div>&nbsp; i: Integer;</div><div>&nbsp; adSoyad,plaka:String;</div><div>&nbsp; VeriPanel: TclProPanel;</div><div>&nbsp; SelectedAdSoyad, SelectedPlaka: String; // Dinamik olarak seçilen müşteri</div><div><br></div><div><br></div><div><br></div><div>// Seçme işlemi</div><div>void SelectCustomer;</div><div>{</div><div>&nbsp; ShowMessage('Seçilen: ' + adSoyad + ' - ' + plaka);</div><div>&nbsp; // Burada başka bir işleme yönlendirebilirsin</div><div>}</div><div><br></div><div>// Buton için event prosedürleri</div><div>void OnSelectButtonClicked;</div><div>{</div><div>&nbsp; adSoyad = SelectedAdSoyad;</div><div>&nbsp; plaka = SelectedPlaka;</div><div>&nbsp; SelectCustomer();</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void DeleteBtnClicked;</div><div>var</div><div>&nbsp; plaka: String;</div><div>{</div><div>&nbsp; // BtnDelete.clTagStr zaten satırın plakasını içeriyor</div><div>&nbsp; plaka = BtnDelete.clTagStr;</div><div><br></div><div>&nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'otoyikama123.db3', '');</div><div>&nbsp; Clomosy.DBSQLiteQuery.SQL.Text = 'DELETE FROM MusteriListesi WHERE Plaka = "' + plaka + '"';</div><div>&nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div><br></div><div>&nbsp; ShowMessage('Müşteri silindi.');</div><div>&nbsp; MainForm.Close;</div><div>&nbsp; Clomosy.RunUnit('uMustersecme');</div><div>}</div><div><br></div><div><br></div><div><br></div><div>void GoToAddCustomer;</div><div>{</div><div>&nbsp; Clomosy.RunUnit('uMusteriEkleme');</div><div>}</div><div><br></div><div>void LoadCustomers;</div><div>{</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'otoyikama123.db3', '');</div><div>&nbsp; &nbsp; query = Clomosy.DBSQLiteQueryWith('SELECT AdSoyad, Plaka FROM MusteriListesi');</div><div>&nbsp; &nbsp; query.OpenOrExecute;</div><div>&nbsp; &nbsp; query.First;</div><div><br></div><div>&nbsp; &nbsp; i = 0;</div><div>&nbsp; &nbsp; while (not query.EOF)&nbsp;</div><div>&nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; i = i + 1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; VeriPanel = MainForm.AddNewProPanel(VerticalScrollBox, 'VeriPanel_' + IntToStr(i));</div><div>&nbsp; &nbsp; &nbsp; &nbsp; VeriPanel.Align = alTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; VeriPanel.Width = 370;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; VeriPanel.Height =100;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; VeriPanel.SetClproSettings(VeriPanel.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl = MainForm.AddNewProLabel(VeriPanel, 'nameLbl_' + IntToStr(i), query.FieldByName('AdSoyad').AsString);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl.Margins.Right = 210;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl.Margins.Left = 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl.Margins.Top = 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl.clProSettings.TextSettings.Font.Size = 16;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; nameLbl.SetclProSettings(nameLbl.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plateLbl = MainForm.AddNewProLabel(VeriPanel, 'plateLbl_' + IntToStr(i), query.FieldByName('Plaka').AsString);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plateLbl.Margins.Right = 210;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plateLbl.Margins.Left = 20 ;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plateLbl.Margins.Top = 35;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plateLbl.clProSettings.TextSettings.Font.Size = 14;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; plateLbl.SetclProSettings(plateLbl.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Dinamik değerleri ata</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SelectedAdSoyad = query.FieldByName('AdSoyad').AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SelectedPlaka = query.FieldByName('Plaka').AsString;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Seç butonu</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect = MainForm.AddNewProButton(VeriPanel, 'BtnSelect_' + IntToStr(i), 'Seç');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.Width = 50;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.Height = 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.Margins.Top = 15;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.Margins.Right = 100;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.Margins.Left = 150;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.ClproSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.ClproSettings.BorderColor = clAlphaColor.clHexToColor('#0394fc');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; BtnSelect.SetClproSettings(BtnSelect.ClproSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; MainForm.AddNewEvent(BtnSelect, tbeOnClick, 'OnSelectButtonClicked');</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Sil butonu</div><div>&nbsp; &nbsp; &nbsp; &nbsp;// Sil butonu</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete = MainForm.AddNewProButton(VeriPanel, 'BtnDelete_' + IntToStr(i), 'Sil');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.clTagStr = query.FieldByName('Plaka').AsString; // bu satırın plakası</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.Width = 50;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.Height = 20;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.Margins.Top = 15;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.Margins.Right = 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.Margins.Left = 250;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.ClproSettings.BorderWidth = 3;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.ClproSettings.BorderColor = clAlphaColor.clHexToColor('#0394fc');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;BtnDelete.SetClproSettings(BtnDelete.ClproSettings);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;MainForm.AddNewEvent(BtnDelete, tbeOnClick, 'DeleteBtnClicked'); // TEK fonksiyon</div><div>&nbsp;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; query.Next;</div><div>&nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; query.Close;</div><div>&nbsp; except</div><div>&nbsp; &nbsp; ShowMessage('Hata: ' + LastExceptionMessage);</div><div>&nbsp; }</div><div>}</div><div><br></div><div>{</div><div>&nbsp; MainForm = TCLForm.Create(Self);</div><div>&nbsp; MainForm.SetFormBGImage('<a href="https://resmim.net/cdn/2025/08/12/XOro6W.png" target="_blank" rel="nofollow">https://resmim.net/cdn/2025/08/12/XOro6W.png</a>');</div><div><br></div><div>&nbsp; testpnl = MainForm.AddNewProPanel(MainForm, 'testpnl');</div><div>&nbsp; testpnl.Align = alCenter;</div><div>&nbsp; testpnl.Width = 380;</div><div>&nbsp; testpnl.Height = 700;</div><div>&nbsp; testpnl.clProSettings.BorderColor = clAlphaColor.clHexToColor('#0394fc');</div><div>&nbsp; testpnl.clProSettings.BorderWidth = 2;</div><div>&nbsp; testpnl.clProSettings.IsRound = True;</div><div>&nbsp; testpnl.SetclProSettings(testpnl.clProSettings);</div><div><br></div><div>&nbsp; TitleLbl = MainForm.AddNewProLabel(testpnl, 'TitleLbl', 'Müşteri Listesi');</div><div>&nbsp; TitleLbl.Align = alTop;</div><div>&nbsp; TitleLbl.Margins.Left = 140;</div><div>&nbsp; TitleLbl.Margins.Right =50;</div><div>&nbsp; TitleLbl.clProSettings.TextSettings.Font.Size = 20;</div><div>&nbsp; TitleLbl.clProSettings.TextSettings.Font.Style = &#091;fsBold&#093;;</div><div>&nbsp; TitleLbl.Margins.Top = 10;</div><div>&nbsp; TitleLbl.Margins.Bottom = 10;</div><div>&nbsp; TitleLbl.SetclProSettings(TitleLbl.clProSettings);</div><div><br></div><div>&nbsp; VerticalScrollBox = MainForm.AddNewVertScrollBox(testpnl, 'VerticalScrollBox');</div><div>&nbsp; VerticalScrollBox.Align = alClient;</div><div><br></div><div>&nbsp; BtnAdd = MainForm.AddNewProButton(VerticalScrollBox, 'BtnAdd', 'Müşteri Ekle');</div><div>&nbsp; BtnAdd.Margins.Bottom = 10;</div><div>&nbsp; BtnAdd.Margins.Top = 350;</div><div>&nbsp; BtnAdd.Height = 50;</div><div>&nbsp; BtnAdd.Width = 100;</div><div>&nbsp; BtnAdd.clProSettings.BorderWidth = 3;</div><div>&nbsp; BtnAdd.clProSettings.IsRound = True;</div><div>&nbsp; BtnAdd.clProSettings.BorderColor = clAlphaColor.clHexToColor('#0394fc');</div><div>&nbsp; BtnAdd.SetclProSettings(BtnAdd.clProSettings);</div><div>&nbsp; MainForm.AddNewEvent(BtnAdd, tbeOnClick, 'GoToAddCustomer');</div><div><br></div><div>&nbsp; LoadCustomers;</div><div><br></div><div>&nbsp; MainForm.Run;</div><div>}</div></div><div>Kodum bu Sil butonuna tıklayınca o satırı silmesi için yapmaya çalıştım ama en son satırı siliyor</div>]]>
   </description>
   <pubDate>Tue, 19 Aug 2025 14:18:41 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1186&amp;PID=2520#2520</guid>
  </item> 
 </channel>
</rss>