<?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 : TestListview</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : TestListview]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 16:03:25 +0000</pubDate>
  <lastBuildDate>Fri, 12 Jul 2024 15:57:46 +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=645</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[TestListview : Merhaba Yusuf,sqlite &#252;zerinden...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=645&amp;PID=1002#1002</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=132">Atiker01</a><br /><strong>Konu:</strong> 645<br /><strong>Gönderim Zamanı:</strong> 12&nbsp;Temmuz&nbsp;2024 Saat 15:57<br /><br />Merhaba Yusuf,<div><br></div><div>sqlite üzerinden alınan veriler bir diziye aktarılmış ve basit bir döngü ile gösterilmiş örneği aşağıda yer almaktadır. İstediğin duruma göre değiştirebilirsin.</div><div><br></div><div><table width="99%"><tr><td><pre class="BBcode"></div><div><div>var</div><div>&nbsp; &nbsp; MyForm : TclForm;</div><div>&nbsp; &nbsp; Qry : TClSQLiteQuery;</div><div>&nbsp; &nbsp; productPriceArr : TClArrayString;</div><div>&nbsp;&nbsp;</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SqLiteInsertData;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = '</div><div>&nbsp; &nbsp; INSERT INTO Products (productId, productName, productPrice) VALUES (1, ''Iphone 11'', ''18000.00'');</div><div>&nbsp; &nbsp; INSERT INTO Products (productId, productName, productPrice) VALUES (2, ''Xiaomi Redmi Note 11 Pro'', ''15000.50'');</div><div>&nbsp; &nbsp; INSERT INTO Products (productId, productName, productPrice) VALUES (3, ''Omix X600'', ''20000.75'');</div><div>&nbsp; &nbsp; INSERT INTO Products (productId, productName, productPrice) VALUES (4, ''Huawei Nova Y70'', ''25000.00'');</div><div>&nbsp; &nbsp; INSERT INTO Products (productId, productName, productPrice) VALUES (5, ''Samsung Galaxy S20'', ''30000.25'');</div><div>&nbsp; &nbsp; INSERT INTO Products (productId, productName, productPrice) VALUES (6, ''Iphone 14 Pro Max'', ''50000.25'');';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Adding data to the table was successful!');</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; void SqLiteConnectionCreateTable;</div><div>&nbsp; var</div><div>&nbsp; &nbsp; TableExists: Boolean;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteConnect(Clomosy.AppFilesPath + 'DBProduct.db3', '');</div><div>&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check if the table exists</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'SELECT name FROM sqlite_master WHERE type="table" AND name="Products";';</div><div>&nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Check the results</div><div>&nbsp; &nbsp; &nbsp; TableExists = not Clomosy.DBSQLiteQuery.Eof;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Create the table if it does not exist</div><div>&nbsp; &nbsp; &nbsp; if not (TableExists)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.Sql.Text = 'CREATE TABLE Products(productId INTEGER NOT NULL,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; productName TEXT NOT NULL,</div><div>&nbsp; &nbsp; &nbsp; &nbsp; productPrice TEXT NOT NULL)';</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Clomosy.DBSQLiteQuery.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Table successfully added to the database!');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; SqLiteInsertData;</div><div>&nbsp; &nbsp; &nbsp; } else</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('The Products table already exists.');</div><div>&nbsp; &nbsp; &nbsp; }</div><div><br></div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; &nbsp; }</div><div>&nbsp; }</div><div>&nbsp; void getArr;</div><div>&nbsp; var</div><div>&nbsp; &nbsp;iIndex : Integer;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; for (iIndex = 0 to productPriceArr.Count-1)</div><div>&nbsp; &nbsp;{</div><div>&nbsp; &nbsp; &nbsp;ShowMessage('productPrice: '+IntToStr(productPriceArr.GetItem(iIndex)));</div><div>&nbsp; &nbsp;}</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; void GetData;</div><div>&nbsp; {</div><div>&nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; Qry = Clomosy.DBSQLiteQueryWith('SELECT productId, productName, productPrice FROM Products');</div><div>&nbsp; &nbsp; &nbsp; Qry.OpenOrExecute;</div><div>&nbsp; &nbsp; &nbsp; Qry.First;</div><div>&nbsp; &nbsp; &nbsp; while (not Qry.EOF)</div><div>&nbsp; &nbsp; &nbsp; {</div><div>&nbsp; &nbsp; &nbsp; &nbsp; productPriceArr.Add(Qry.FieldByName('productPrice').AsString);</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Qry.Next;</div><div>&nbsp; &nbsp; &nbsp; }</div><div>&nbsp; &nbsp; &nbsp; getArr;</div><div>&nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception class: '+LastExceptionClassName+' Exception Message: ' +LastExceptionMessage);</div><div>&nbsp; &nbsp; }&nbsp;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; {</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; MyForm = TclForm.Create(Self);</div><div>&nbsp; &nbsp; productPriceArr = TClArrayString.Create;</div><div>&nbsp; &nbsp; SqLiteConnectionCreateTable;</div><div>&nbsp; &nbsp; GetData;</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; MyForm.Run;</div><div>&nbsp; }</div></div><div></pre></td></tr></table></div>]]>
   </description>
   <pubDate>Fri, 12 Jul 2024 15:57:46 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=645&amp;PID=1002#1002</guid>
  </item> 
  <item>
   <title><![CDATA[TestListview : testListview : TClListView;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=645&amp;PID=961#961</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=122">Yusuf Eren</a><br /><strong>Konu:</strong> 645<br /><strong>Gönderim Zamanı:</strong> 11&nbsp;Temmuz&nbsp;2024 Saat 16:29<br /><br /><div>testListview : TClListView;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>void Kelime;</div><div>{</div><div>&nbsp;Qry = Clomosy.DBSQLiteQueryWith('SELECT CategoryName as MAIN_TEXT, Description as SUB_TEXT FROM Categories');</div><div>&nbsp;Qry.OpenOrExecute;</div><div>testListview.clLoadListViewDataFromDataset(Qry);&nbsp; &nbsp;&nbsp;</div><div>}</div><div>Bir SQLite veri tabanındaki elemanları bir listeye alabiliyorum. Ancak, bu elemanları bir diziye atamak ve bu dizi ile işlem yapmak istiyorum. Bu konuda bana yardımcı olabilir misiniz?</div>]]>
   </description>
   <pubDate>Thu, 11 Jul 2024 16:29:51 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=645&amp;PID=961#961</guid>
  </item> 
 </channel>
</rss>