<?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 : Data set kullanımı</title>
  <link>https://www.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : Data set kullanımı]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Tue, 14 Apr 2026 11:51:43 +0000</pubDate>
  <lastBuildDate>Thu, 10 Aug 2023 09:56:04 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.clomosy.com.tr/RSS_post_feed.asp?TID=560</WebWizForums:feedURL>
  <image>
   <title><![CDATA[Clomosy | Forum]]></title>
   <url>https://www.clomosy.com.tr/forum_images/logo.png</url>
   <link>https://www.clomosy.com.tr/</link>
  </image>
  <item>
   <title><![CDATA[Data set kullanımı : Projenin nas&#305;l &#231;al&#305;&#351;t&#305;&#287;&#305;n&#305; bilmedi&#287;im...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=560&amp;PID=723#723</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=133">Alforce</a><br /><strong>Konu:</strong> 560<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Ağustos&nbsp;2023 Saat 09:56<br /><br />Projenin nasıl çalıştığını bilmediğim için projene entegre edemedim.<div><br></div><div>Ama bunu yapmanın en kolay yöntemi birkaç tane senkronize liste kullanmaktır.</div><div>Bunlar veri tabanının stünları gibidirler.</div><div><br></div><div>Burda senin için basit bir örnek oluşturdum,.</div><div>Bu temel mantık, genişletilmesi ise çok basitdir.</div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>Var</div><div>&nbsp; Col_Name,</div><div>&nbsp; Col_SurName: TclStringList;</div><div><br></div><div>Var</div><div>&nbsp; MyForm: TclForm;</div><div>&nbsp; But1, But2: TclButton;</div><div><br></div><div>Procedure Ekle;</div><div>Begin</div><div>&nbsp; Col_Name.Add('Kadir');</div><div>&nbsp; Col_SurName.Add('Aydın');</div><div>End;</div><div><br></div><div>Procedure List;</div><div>Var</div><div>&nbsp; i: Integer;</div><div>Begin</div><div>&nbsp; For i := 0 to Col_Name.Count -1 do</div><div>&nbsp; &nbsp; ShowMessage(</div><div>&nbsp; &nbsp; &nbsp; Clomosy.StringListItemString(Col_Name,i) +'-'+</div><div>&nbsp; &nbsp; &nbsp; Clomosy.StringListItemString(Col_SurName,i)</div><div>&nbsp; &nbsp; );</div><div>End;</div><div><br></div><div>Begin</div><div>&nbsp; MyForm:= TclForm.Create(Self);</div><div>&nbsp;&nbsp;</div><div>&nbsp; Col_Name:= Clomosy.StringListNew;</div><div>&nbsp; Col_SurName:= Clomosy.StringListNew;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; But1:= MyForm.AddNewButton(MyForm,'but1', 'Ekle');</div><div>&nbsp; MyForm.AddNewEvent(But1, tbeOnClick, 'Ekle');</div><div>&nbsp; But1.Align:= alLeft;</div><div>&nbsp;&nbsp;</div><div>&nbsp; But2:= MyForm.AddNewButton(MyForm,'but2', 'Listele');</div><div>&nbsp; MyForm.AddNewEvent(But2, tbeOnClick, 'List');</div><div>&nbsp; But2.Align:= alRight;</div><div>&nbsp;&nbsp;</div><div>&nbsp; MyForm.Run;</div><div>End;</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Thu, 10 Aug 2023 09:56:04 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=560&amp;PID=723#723</guid>
  </item> 
  <item>
   <title><![CDATA[Data set kullanımı : VarMyForm:TclForm;btn1,btn2,bt...]]></title>
   <link>https://www.clomosy.com.tr/forum_posts.asp?TID=560&amp;PID=722#722</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://www.clomosy.com.tr/member_profile.asp?PF=117">halilselvitopu</a><br /><strong>Konu:</strong> 560<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Ağustos&nbsp;2023 Saat 09:19<br /><br />Var&nbsp;<div>MyForm:TclForm;</div><div>btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8,btn9,btn10,btn11,btn12,btn13,btn14,btn15,btn16,btn17,btn18,btn19,btn20</div><div>testBtn: TClProButton;</div><div>myDeviceManager:TclDeviceManager;</div><div>valueName:string;</div><div>tahminsayifloat:Float;</div><div>tahminsayi,girsayi,i,sira:Integer;</div><div>ButtonZar:TclButton;</div><div>testImg:TclImage; //Tanımlamalar</div><div><br></div><div>procedure tmz; //Buton tıklanma için</div><div><br></div><div>var&nbsp;</div><div>i:Integer;</div><div>But:TClProButton;</div><div><br></div><div>begin&nbsp;</div><div><br></div><div>for i:=1 to 18 do //18 tane buton&nbsp;</div><div>begin&nbsp;</div><div>But:=TClProButton(MyForm.clFindComponent('btn'+ IntToStr(i)));</div><div>clComponent.SetupComponent(But,'{"BackgroundColor":"#ffffff"}');</div><div>But.enabled:=True;</div><div>end;</div><div>end;</div><div>procedure c1&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn1,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn1.enabled:=False;</div><div>end;</div><div>procedure c2</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn2,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn2.enabled:=False;end;procedure c3&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn3,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn3.enabled:=False;</div><div>end;</div><div>procedure c4&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn4,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn4.enabled:=False;</div><div>end;</div><div>procedure c5</div><div>begin</div><div>tmz;</div><div>clComponent.SetupComponent(btn5,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn5.enabled:=False;</div><div>end;</div><div>procedure c6&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn6,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn6.enabled:=False;</div><div>end;</div><div>procedure c7&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn7,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn7.enabled:=False;</div><div>end;</div><div>procedure c8&nbsp;</div><div>begin</div><div>tmz;</div><div>clComponent.SetupComponent(btn8,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn8.enabled:=False;</div><div>end;</div><div>procedure c9&nbsp;</div><div>begin</div><div>tmz;</div><div>clComponent.SetupComponent(btn9,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn9.enabled:=False;end;</div><div>procedure c11&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn11,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn11.enabled:=False;</div><div>end;</div><div>procedure c12&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn12,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn12.enabled:=False;</div><div>end;</div><div>procedure c14&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn14,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn14.enabled:=False;</div><div>end;</div><div>procedure c16&nbsp;</div><div>begin</div><div>tmz;</div><div>clComponent.SetupComponent(btn16,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn16.enabled:=False;</div><div>end;</div><div>procedure c18&nbsp;</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn18,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn18.enabled:=False;</div><div>end;</div><div><br></div><div>procedure clicked;//SQL e bağlanmak için</div><div>begin&nbsp;</div><div>Clomosy.RunUnit('monopoly');</div><div>end;</div><div><br></div><div>procedure kodes;//kodes butonuna text koyak için tıklanma özelliği</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn15,'{"BackgroundColor":"#BBEAFC"}');</div><div>ShowMessage('2 tur bekle');</div><div>btn15.enabled:=False;</div><div>end;</div><div><br></div><div>procedure gum;//gümrüe tıklanma ve text</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn13,'{"BackgroundColor":"#BBEAFC"}');</div><div>ShowMessage('Gümrüğe takıldın 5000 TL ver');</div><div>btn13.enabled:=False;end;</div><div><br></div><div>procedure sans;</div><div>var&nbsp;</div><div>q:int;</div><div>WordMean:String;</div><div>begin</div><div>tmz;</div><div>clComponent.SetupComponent(btn17,'{"BackgroundColor":"#BBEAFC"}');</div><div>btn17.enabled:=False;</div><div>q:= clMath.GenerateRandom(0,10) ;&nbsp;</div><div>case&nbsp; q of</div><div>0:WordMean:='Vergi borcunu ödemedin, haciz geldi 1000 TL öde';</div><div>1:WordMean:='Başlangıç noktasına git';</div><div>2:WordMean:='Kodese gir';</div><div>3:WordMean:='Kodesten ücretsiz çık';</div><div>4:WordMean:='3 hamle ileri git';</div><div>5:WordMean:='5 hamle ileri git';</div><div>6:WordMean:='2 hamle geri git';</div><div>7:WordMean:='4 hamle geri git';</div><div>8:WordMean:='Piyangodan 2000 TL kazandın';</div><div>9:WordMean:='Şehrinde deprem oldu evlerinden biri yıkıldı';</div><div>10:WordMean:='Doğum günün, bütün oyunculardan 500 TL al';</div><div>end;</div><div>ShowMessage(WordMean);</div><div>end;&nbsp;</div><div>procedure py1;</div><div>begin&nbsp;</div><div><br></div><div>clComponent.SetupComponent(btn19,'{"BackgroundColor":"#BBEAFC"}');</div><div>clComponent.SetupComponent(btn20,'{"BackgroundColor":"#ffffff"}');</div><div>tmz;</div><div>ShowMessage('Player 1 oynuyor');</div><div>btn19.enabled:=False;</div><div>btn20.enabled:=True;</div><div>end;</div><div>procedure py2;</div><div>begin&nbsp;</div><div>clComponent.SetupComponent(btn19,'{"BackgroundColor":"#ffffff"}');</div><div>clComponent.SetupComponent(btn20,'{"BackgroundColor":"#BBEAFC"}');</div><div>tmz;</div><div>ShowMessage('Player 2 oynuyor');</div><div>btn19.enabled:=True;</div><div>btn20.enabled:=False;</div><div>end;</div><div><br></div><div>procedure viz;//vize butonu için tıklanma ve text</div><div>begin&nbsp;</div><div>tmz;</div><div>clComponent.SetupComponent(btn10,'{"BackgroundColor":"#BBEAFC"}');</div><div>ShowMessage('Çıkmak için vize almalısın 2000 TL ver');</div><div>btn10.enabled:=False;end;</div><div><br></div><div>Procedure ZarGorsel(a:Integer)</div><div>begin</div><div><br></div><div>if a=1 then //sırayla 1 se 2 ise şu görsel gelsin</div><div>begin</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/fro63f6.png');</div><div>end;</div><div>else if a = 2 then&nbsp;</div><div>begin&nbsp;</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/egerynm.png');</div><div>end;</div><div>else if a = 3 then&nbsp;</div><div>begin&nbsp;</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/h73lzkk.png');</div><div>end;</div><div>else if a = 4 then&nbsp;</div><div>begin</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/lg7nxgm.png');</div><div>end;</div><div>else if a = 5 then</div><div>begin&nbsp;</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/fzz3x41.png');</div><div>end;</div><div>else if a = 6 then&nbsp;</div><div>begin&nbsp;</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/odqhg4l.png');</div><div>end;</div><div>end;</div><div><br></div><div>Procedure ButtonZarFonk;//butona random sayı gelmesi için</div><div>begin&nbsp;</div><div>tahminsayi:=clMath.generateRandom(1,6);</div><div>ZarGorsel(tahminsayi);</div><div>end;</div><div><br></div><div>begin&nbsp;</div><div>MyForm:=TclForm.Create(Self);//probutonların özellikleri ayarlandı</div><div><br></div><div>myDeviceManager:=TclDeviceManager.Create;</div><div><br></div><div>MyForm.SetFormBGImage('https://i.hizliresim.com/1suq52z.png');//arka plan fotosu</div><div><br></div><div>btn1:=MyForm.AddNewProButton(MyForm,'btn1','');</div><div>clComponent.SetupComponent(btn1,'{"caption":"İNGİLTERE","MarginLeft":290,"MarginTop":500,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn2:=MyForm.AddNewProButton(MyForm,'btn2','');</div><div>clComponent.SetupComponent(btn2,'{"caption":"İTALYA","MarginLeft":600,"MarginTop":330,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn3:=MyForm.AddNewProButton(MyForm,'btn3','');</div><div>clComponent.SetupComponent(btn3,'{"caption":"TÜRKİYE","MarginLeft":-25,"MarginTop":500,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn4:=MyForm.AddNewProButton(MyForm,'btn4','');</div><div>clComponent.SetupComponent(btn4,'{"caption":"ALMANYA","MarginLeft":-655,"MarginTop":500,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn5:=MyForm.AddNewProButton(MyForm,'btn5','');</div><div>clComponent.SetupComponent(btn5,'{"caption":"KORE","MarginLeft":-340,"MarginTop":500,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn6:=MyForm.AddNewProButton(MyForm,'btn6','');</div><div>clComponent.SetupComponent(btn6,'{"caption":"FRANSA","MarginLeft":290,"MarginTop":-580,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn7:=MyForm.AddNewProButton(MyForm,'btn7','');</div><div>clComponent.SetupComponent(btn7,'{"caption":"BAŞLA","MarginLeft":600,"MarginTop":-405,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn8:=MyForm.AddNewProButton(MyForm,'btn8','');</div><div>clComponent.SetupComponent(btn8,'{"caption":"NORVEÇ","MarginLeft":-25,"MarginTop":-580,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn9:=MyForm.AddNewProButton(MyForm,'btn9','');</div><div>clComponent.SetupComponent(btn9,'{"caption":"ABD","MarginLeft":-655,"MarginTop":-580,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn10:=MyForm.AddNewProButton(MyForm,'btn10','');</div><div>clComponent.SetupComponent(btn10,'{"caption":"VİZE AL","MarginLeft":-340,"MarginTop":-580,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div>MyForm.AddNewEvent(btn10,tbeOnClick,'viz');</div><div><br></div><div>btn11:=MyForm.AddNewProButton(MyForm,'btn11','');</div><div>clComponent.SetupComponent(btn11,'{"caption":"RUSYA","MarginLeft":-970,"MarginTop":-220,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn12:=MyForm.AddNewProButton(MyForm,'btn12','');</div><div>clComponent.SetupComponent(btn12,'{"caption":"MISIR","MarginLeft":-970,"MarginTop":-405,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn13:=MyForm.AddNewProButton(MyForm,'btn13','');</div><div>clComponent.SetupComponent(btn13,'{"caption":"GÜMRÜK KAPISI","MarginLeft":-970,"MarginTop":-37,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div>MyForm.AddNewEvent(btn13,tbeOnClick,'gum');</div><div><br></div><div>btn14:=MyForm.AddNewProButton(MyForm,'btn14','');</div><div>clComponent.SetupComponent(btn14,'{"caption":"UKRAYNA","MarginLeft":-970,"MarginTop":145,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn15:=MyForm.AddNewProButton(MyForm,'btn15','');</div><div>clComponent.SetupComponent(btn15,'{"caption":"KODES","MarginLeft":-970,"MarginTop":330,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div>MyForm.AddNewEvent(btn15,tbeOnClick,'kodes');</div><div><br></div><div>btn16:=MyForm.AddNewProButton(MyForm,'btn16','');</div><div>clComponent.SetupComponent(btn16,'{"caption":"ÇİN","MarginLeft":600,"MarginTop":-220,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn17:=MyForm.AddNewProButton(MyForm,'btn17','');</div><div>clComponent.SetupComponent(btn17,'{"caption":"ŞANS","MarginLeft":600,"MarginTop":145,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn18:=MyForm.AddNewProButton(MyForm,'btn18','');</div><div>clComponent.SetupComponent(btn18,'{"caption":"KANADA","MarginLeft":600,"MarginTop":-37,"Width":148,"Height":85,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn19:=MyForm.AddNewProButton(MyForm,'btn19','');</div><div>clComponent.SetupComponent(btn19,'{"caption":"Player 1","MarginLeft":1000,"MarginBottom":500,"Width":130,"Height":70,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>btn20:=MyForm.AddNewProButton(MyForm,'btn20','');</div><div>clComponent.SetupComponent(btn20,'{"caption":"Player 2","MarginLeft":1300,"MarginBottom":500,"Width":130,"Height":70,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div><br></div><div>testImg:=MyForm.AddNewImage(MyForm,'testImg');</div><div>testImg.Margins.Left:=1150;</div><div>testImg.Margins.Top:=190;</div><div>testImg.Width:=80;</div><div>testImg.Height:=80;</div><div>MyForm.SetImage(testImg,'https://i.hizliresim.com/fro63f6.png');//zarda duruş görseli</div><div>ButtonZar:=MyForm.AddNewButton(MyForm,'ButtonZar','Zar At');//zar at butonu</div><div>ButtonZar.Margins.Left:=1150;</div><div>ButtonZar.Margins.Top:=350;</div><div>ButtonZar.Width:=80;ButtonZar.Height:=40;MyForm.AddNewEvent(ButtonZar,tbeOnClick,'ButtonZarFonk');</div><div>testBtn := MyForm.AddNewProButton(MyForm,'testBtn','');</div><div>clComponent.SetupComponent(testBtn,'{"caption":"Ülkeler","MarginLeft":1150,"MarginBottom":110,"Width" :200, "Height":70,"RoundHeight":2,"RoundWidth":2,"BorderColor":"#000000","BorderWidth":2}');</div><div>MyForm.AddNewEvent(testBtn,tbeOnClick,'clicked');</div><div>MyForm.AddNewEvent(btn1,tbeOnClick,'c1');</div><div>MyForm.AddNewEvent(btn2,tbeOnClick,'c2');</div><div>MyForm.AddNewEvent(btn3,tbeOnClick,'c3');</div><div>MyForm.AddNewEvent(btn4,tbeOnClick,'c4');</div><div>MyForm.AddNewEvent(btn5,tbeOnClick,'c5');</div><div>MyForm.AddNewEvent(btn6,tbeOnClick,'c6');</div><div>MyForm.AddNewEvent(btn7,tbeOnClick,'c7');</div><div>MyForm.AddNewEvent(btn8,tbeOnClick,'c8');</div><div>MyForm.AddNewEvent(btn9,tbeOnClick,'c9');</div><div>MyForm.AddNewEvent(btn11,tbeOnClick,'c11');</div><div>MyForm.AddNewEvent(btn12,tbeOnClick,'c12');</div><div>MyForm.AddNewEvent(btn14,tbeOnClick,'c14');</div><div>MyForm.AddNewEvent(btn16,tbeOnClick,'c16');</div><div>MyForm.AddNewEvent(btn17,tbeOnClick,'sans');</div><div>MyForm.AddNewEvent(btn18,tbeOnClick,'c18');</div><div>MyForm.AddNewEvent(btn19,tbeOnClick,'py1');</div><div>MyForm.AddNewEvent(btn20,tbeOnClick,'py2');</div><div>MyForm.Run;</div><div>end;&nbsp;&nbsp;<br><br><br>UNIT2 KISMI SQL<br><br><div>Var&nbsp;&nbsp;</div><div>MyForm:TclForm;</div><div><br></div><div>testListview : TClProListView;</div><div>testDesignerPanel : TClProListViewDesignerPanel;</div><div>isim,deger,kira : TClProLabel;</div><div><br></div><div>procedure SetupSqlConnection;</div><div>begin</div><div>&nbsp; &nbsp;Clomosy.DBSQLServerConnect('SQL Server','192.168.22.44','sa','zeren93353','monopoly',50000);</div><div>end;</div><div><br></div><div>procedure AddDataToListview;</div><div>Var</div><div>&nbsp; foodListQuery : TClSqlQuery;</div><div>begin</div><div>&nbsp; foodListQuery := TClSqlQuery.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; &nbsp;foodListQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; &nbsp;foodListQuery.SQL.Text := 'SELECT TOP (1000) &#091;id&#093;</div><div>&nbsp; &nbsp; &nbsp; ,&#091;isim&#093;</div><div>&nbsp; &nbsp; &nbsp; ,&#091;deger&#093;</div><div>&nbsp; &nbsp; &nbsp; ,&#091;kira&#093;</div><div>&nbsp; FROM &#091;monopoly&#093;.&#091;dbo&#093;.&#091;arsa&#093;</div><div>';</div><div>&nbsp; &nbsp; &nbsp;foodListQuery.Open;</div><div>&nbsp; &nbsp; &nbsp;if foodListQuery.Found then</div><div>&nbsp; &nbsp; &nbsp;begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; testListview.clLoadProListViewDataFromDataset(foodListQuery);</div><div>&nbsp; &nbsp; &nbsp;end;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; &nbsp;foodListQuery.Close;</div><div>&nbsp; &nbsp; &nbsp;foodListQuery.Free;</div><div>&nbsp; end;</div><div>&nbsp;end;&nbsp;</div><div><br></div><div>&nbsp;procedure onItemClicked;</div><div>&nbsp;begin</div><div>&nbsp; &nbsp;ShowMessage('--');</div><div>&nbsp;end;</div><div>&nbsp;</div><div>&nbsp;procedure CreateDesignerPanel;</div><div>&nbsp;begin</div><div>&nbsp; &nbsp; &nbsp;testDesignerPanel := MyForm.AddNewProListViewDesignerPanel(testListview,'testDesignerPanel');&nbsp;</div><div>&nbsp; &nbsp; &nbsp;clComponent.SetupComponent(testDesignerPanel,'{"Height":100,"Width" : 150,"BackgroundColor":"#F6EDDB","BorderColor":"#F5BCC9","BorderWidth":2,"RoundHeight":20,"RoundWidth":20}');</div><div>&nbsp; &nbsp; &nbsp;testListview.SetDesignerPanel(testDesignerPanel);</div><div>&nbsp;end;</div><div><br></div><div>&nbsp;procedure CreateListView;</div><div>&nbsp;begin</div><div>&nbsp; &nbsp; testListview := MyForm.AddNewProListView(MyForm,'testListview');</div><div>&nbsp; &nbsp; testListview.Properties.ItemSpace := 10;</div><div>&nbsp; &nbsp; clComponent.SetupComponent(testListview,'{"Height" : 150,"Align":"Client","MarginBottom":20,"MarginTop":20,"MarginRight":20,"MarginLeft":20, "ListType":"Cart","ItemColumnCount" : 2,"ItemHeight" : 150,"ItemWidth":150,&nbsp;</div><div>&nbsp; &nbsp; "BorderColor":"#F5BCC9", "BorderWidth":2,"RoundWidth":5, "RoundHeight":5}');</div><div>&nbsp; &nbsp; testListview.ListType := 'horizontal';</div><div>&nbsp; &nbsp; MyForm.AddNewEvent(testListview,tbeOnItemClick,'onItemClicked');</div><div>&nbsp;end;</div><div><br></div><div>&nbsp;procedure CreateProductNameAndPrice;</div><div>&nbsp;begin</div><div>&nbsp; &nbsp; isim := MyForm.AddNewProLabel(testDesignerPanel,'isim','test');</div><div>&nbsp; &nbsp; clComponent.SetupComponent(isim,'{"MarginTop":10,"MarginLeft":10,"MarginRight":10,"MarginBottom":10 ,"Height":20,"Align" : "MostTop"}');</div><div>&nbsp; &nbsp; testDesignerPanel.AddPanelObject(isim,clCaption);</div><div>&nbsp; &nbsp; isim.Properties.AutoSize := True;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; deger := MyForm.AddNewProLabel(testDesignerPanel,'deger','test');</div><div>&nbsp; &nbsp; clComponent.SetupComponent(deger,'{"MarginTop":10,"MarginLeft":10,"MarginRight":10,"MarginBottom":10 ,"Height":20,"Align" : "MostRight","Width":40}');</div><div>&nbsp; &nbsp; testDesignerPanel.AddPanelObject(deger,clText);</div><div>&nbsp; &nbsp; deger.Properties.AutoSize := True;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; kira := MyForm.AddNewProLabel(testDesignerPanel,'kira','test');</div><div>&nbsp; &nbsp; clComponent.SetupComponent(kira,'{"MarginTop":10,"MarginLeft":10,"MarginRight":10,"MarginBottom":10 ,"Height":20,"Align" : "Left","Width":40}');</div><div>&nbsp; &nbsp; testDesignerPanel.AddPanelObject(kira,clText1);</div><div>&nbsp; &nbsp; kira.Properties.AutoSize := True;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp;end;</div><div>begin</div><div>&nbsp; MyForm := TclForm.Create(Self);</div><div>&nbsp; CreateListView;</div><div>&nbsp; CreateDesignerPanel;</div><div>&nbsp; SetupSqlConnection;</div><div>&nbsp; CreateProductNameAndPrice;</div><div>&nbsp; AddDataToListview;</div><div><br></div><div>&nbsp; MyForm.Run;</div><div>end;</div><br><br><br>Bu monopoly örneğinde bakiyeleri tutmak için data set kullanmamız gerekiyor sanırım. Docdaki örneği kullandım fakat monopoly'e uyarlayamadım. Bunu sağlayabilmem için yardımcı olur musunuz?</div>]]>
   </description>
   <pubDate>Thu, 10 Aug 2023 09:19:26 +0000</pubDate>
   <guid isPermaLink="true">https://www.clomosy.com.tr/forum_posts.asp?TID=560&amp;PID=722#722</guid>
  </item> 
 </channel>
</rss>