<?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 hata</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : kod hata]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 18 May 2026 18:34:44 +0000</pubDate>
  <lastBuildDate>Mon, 18 May 2026 15:36:39 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.07</generator>
  <ttl>30</ttl>
  <WebWizForums:feedURL>https://forum.clomosy.com.tr/RSS_post_feed.asp?TID=1543</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 hata : Merhabalar,Kodunuzdaki hata, ilgili...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1543&amp;PID=3560#3560</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=372">Nevra Nur</a><br /><strong>Konu:</strong> 1543<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Mayıs&nbsp;2026 Saat 15:36<br /><br />Merhabalar,<div>Kodunuzdaki hata, ilgili fonksiyonun doğrudan bir metin (String) yerine bir veri seti nesnesi (DataSet) beklemesinden ve JSON verilerinde standart dışı olan tek tırnak kullanılmasından kaynaklanmaktadır. Bu sorunu çözmek için JSON içeriğini oluştururken tek tırnakları çift tırnak (<code -path-to-node="0" -index-in-node="282">"</code>) ile değiştirmeli ve metni listeye eklemeden önce <code -path-to-node="0" -index-in-node="334">Clomosy.ClDataSetFromJSON</code> metodu ile uygun veri seti formatına dönüştürmelisiniz.Düzeltilmiş halini aşağıya ekliyorum.<br><div><div>Var</div><div>anaForm : TclForm;</div><div>edtUrunAdi, edtAdet : TclEdit;</div><div>lblUrunAdi, lblAdet : TclLabel;</div><div>btnEkle : TclButton;</div><div>stokListesi : TclListView;</div><div>tumUrunlerJson : String;&nbsp;</div><div><br></div><div>void UrunEkle;</div><div>Var</div><div>&nbsp; yeniUrunJson : String;</div><div>{</div><div>&nbsp; if ((edtUrunAdi.Text == '') || (edtAdet.Text == ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen Ürün Adı ve Adet alanlarını doldurun!');</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; // DÜZELTME: QuotedStr yerine JSON standardı olan Çift Tırnak (") kullanıyoruz.</div><div>&nbsp; yeniUrunJson = '{"MAIN_TEXT":"' + edtUrunAdi.Text + '", "SUB_TEXT":"' + edtAdet.Text + '"}';</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (tumUrunlerJson &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; tumUrunlerJson = tumUrunlerJson + ',';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; tumUrunlerJson = tumUrunlerJson + yeniUrunJson;</div><div><br></div><div>&nbsp; //&nbsp; DÜZELTME: Oluşturduğumuz JSON stringini doğrudan vermek yerine DataSet'e çeviriyoruz.</div><div>&nbsp; stokListesi.clLoadListViewDataFromDataset(Clomosy.ClDataSetFromJSON('&#091;' + tumUrunlerJson + '&#093;'));</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtUrunAdi.Text = '';</div><div>&nbsp; edtAdet.Text = '';</div><div>}</div><div><br></div><div>{</div><div>&nbsp; anaForm = TclForm.Create(Self);</div><div><br></div><div>&nbsp; tumUrunlerJson = '';</div><div><br></div><div>&nbsp; lblUrunAdi = anaForm.AddNewLabel(anaForm, 'lblUrunAdi', 'Ürün Adı:');</div><div>&nbsp; lblUrunAdi.Align = alTop;</div><div>&nbsp; lblUrunAdi.Margins.Top = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtUrunAdi = anaForm.AddNewEdit(anaForm, 'edtUrunAdi', 'Ürün adı giriniz...');</div><div>&nbsp; edtUrunAdi.Align = alTop;</div><div><br></div><div>&nbsp; lblAdet = anaForm.AddNewLabel(anaForm, 'lblAdet', 'Stok Adedi:');</div><div>&nbsp; lblAdet.Align = alTop;</div><div>&nbsp; lblAdet.Margins.Top = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtAdet = anaForm.AddNewEdit(anaForm, 'edtAdet', 'Adet giriniz...');</div><div>&nbsp; edtAdet.Align = alTop;</div><div><br></div><div>&nbsp; btnEkle = anaForm.AddNewButton(anaForm, 'btnEkle', 'Listeye Ürün Ekle');</div><div>&nbsp; btnEkle.Align = alTop;</div><div>&nbsp; btnEkle.Margins.Top = 15;</div><div>&nbsp; anaForm.AddNewEvent(btnEkle, TbeOnClick, 'UrunEkle');</div><div><br></div><div>&nbsp; stokListesi = anaForm.AddNewListView(anaForm, 'stokListesi');</div><div>&nbsp; stokListesi.Align = alClient;</div><div>&nbsp; stokListesi.Margins.Top = 20;</div><div><br></div><div>&nbsp; anaForm.Run;</div><div>}</div></div><div><br></div></div>]]>
   </description>
   <pubDate>Mon, 18 May 2026 15:36:39 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1543&amp;PID=3560#3560</guid>
  </item> 
  <item>
   <title><![CDATA[kod hata : merhabalar kodumda hata var ve...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=1543&amp;PID=3559#3559</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=383">Selimbeyo</a><br /><strong>Konu:</strong> 1543<br /><strong>Gönderim Zamanı:</strong> 18&nbsp;Mayıs&nbsp;2026 Saat 15:23<br /><br />merhabalar kodumda hata var ve sorunu çözemiyorum.<a href="https://static.cloudflareinsights.com/beac&#111;n.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447" target="_blank" rel="nofollow">https://static.cloudflareinsights.com/beacon.min.js/v833ccba57c9e4d2798f2e76cebdd09a11778172276447"</a> integrity="sha512-57MDmcccJXYtNnH+ZiBwzC4jb2rvgVCEokYN+L/nLlmO8rfYT/gIpW2A569iJ/3b+0UEasghjuZH/ma3wIs/EQ==" data-cf-beacon="{&quot;version&quot;:&quot;2024.11.0&quot;,&quot;token&quot;:&quot;439455f3e46c40b98dbd42a2f1a954d8&quot;,&quot;r&quot;:1,&quot;server_timing&quot;:{&quot;name&quot;:{&quot;cfCacheStatus&quot;:true,&quot;cfEdge&quot;:true,&quot;cfExtPri&quot;:true,&quot;cfL4&quot;:true,&quot;cfOrigin&quot;:true,&quot;cfSpeedBrain&quot;:true},&quot;location_startswith&quot;:null}}" crossorigin="anonymous"><div>kod kısmen çalışıyor ama ürün adı ve adet girip ekle butonuna tıklayınca hata veriyor (hata ve kod aşağıda):</div><div><br></div><div><div>Var</div><div>anaForm : TclForm;</div><div>edtUrunAdi, edtAdet : TclEdit;</div><div>lblUrunAdi, lblAdet : TclLabel;</div><div>btnEkle : TclButton;</div><div>stokListesi : TclListView;</div><div>tumUrunlerJson : String;&nbsp;</div><div><br></div><div>void UrunEkle;</div><div>Var</div><div>&nbsp; yeniUrunJson : String;</div><div>{</div><div>&nbsp; if ((edtUrunAdi.Text == '') || (edtAdet.Text == ''))</div><div>&nbsp; {</div><div>&nbsp; &nbsp; ShowMessage('Lütfen Ürün Adı ve Adet alanlarını doldurun!');</div><div>&nbsp; &nbsp; exit;</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; yeniUrunJson = '{"MAIN_TEXT":' + QuotedStr(edtUrunAdi.Text) + ', "SUB_TEXT":' + QuotedStr(edtAdet.Text) + '}';</div><div>&nbsp;&nbsp;</div><div>&nbsp; if (tumUrunlerJson &lt;&gt; '')</div><div>&nbsp; {</div><div>&nbsp; &nbsp; tumUrunlerJson = tumUrunlerJson + ',';</div><div>&nbsp; }</div><div>&nbsp;&nbsp;</div><div>&nbsp; tumUrunlerJson = tumUrunlerJson + yeniUrunJson;</div><div><br></div><div>&nbsp; stokListesi.clLoadListViewDataFromDataset('&#091;' + tumUrunlerJson + '&#093;');</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtUrunAdi.Text = '';</div><div>&nbsp; edtAdet.Text = '';</div><div>}</div><div><br></div><div>{</div><div>&nbsp; anaForm = TclForm.Create(Self);</div><div><br></div><div>&nbsp; tumUrunlerJson = '';</div><div><br></div><div>&nbsp; lblUrunAdi = anaForm.AddNewLabel(anaForm, 'lblUrunAdi', 'Ürün Adı:');</div><div>&nbsp; lblUrunAdi.Align = alTop;</div><div>&nbsp; lblUrunAdi.Margins.Top = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtUrunAdi = anaForm.AddNewEdit(anaForm, 'edtUrunAdi', 'Ürün adı giriniz...');</div><div>&nbsp; edtUrunAdi.Align = alTop;</div><div><br></div><div>&nbsp; lblAdet = anaForm.AddNewLabel(anaForm, 'lblAdet', 'Stok Adedi:');</div><div>&nbsp; lblAdet.Align = alTop;</div><div>&nbsp; lblAdet.Margins.Top = 10;</div><div>&nbsp;&nbsp;</div><div>&nbsp; edtAdet = anaForm.AddNewEdit(anaForm, 'edtAdet', 'Adet giriniz...');</div><div>&nbsp; edtAdet.Align = alTop;</div><div><br></div><div>&nbsp; btnEkle = anaForm.AddNewButton(anaForm, 'btnEkle', 'Listeye Ürün Ekle');</div><div>&nbsp; btnEkle.Align = alTop;</div><div>&nbsp; btnEkle.Margins.Top = 15;</div><div>&nbsp; anaForm.AddNewEvent(btnEkle, TbeOnClick, 'UrunEkle');</div><div><br></div><div>&nbsp; stokListesi = anaForm.AddNewListView(anaForm, 'stokListesi');</div><div>&nbsp; stokListesi.Align = alClient;</div><div>&nbsp; stokListesi.Margins.Top = 20;</div><div><br></div><div>&nbsp; anaForm.Run;</div><div>}</div></div><div><br></div><div><div>---------------------------</div><div>Error</div><div>---------------------------</div><div>RUNTIME ERROR</div><div><br></div><div>File library Main: Could not convert variant of type (UnicodeString) into type (Integer) when evaluating instruction CallProc ($FFFFFFFF,$1,$AB3684,$1D004B60,'clLoadListViewDataFromDataset').</div><div><br></div><div>Stack content is: &#091;UnicodeString:{"MAIN_TEXT":'a', "SUB_TEXT":'2'},Integer:89926048,Integer:551129392,Integer:142607840...&#093;.</div><div><br></div><div>Source position: 28,72</div><div><br></div><div>Position: 28, 72.</div><div>---------------------------</div><div>Tamam&nbsp; &nbsp;</div><div>---------------------------</div></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 18 May 2026 15:23:24 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=1543&amp;PID=3559#3559</guid>
  </item> 
 </channel>
</rss>