<?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 : hata</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : hata]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 14:56:04 +0000</pubDate>
  <lastBuildDate>Tue, 10 Sep 2024 13:29:21 +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=925</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[hata : Merhaba Nursena,Showmessage i&#231;erisinde...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=925&amp;PID=1804#1804</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=142">BilalCndn</a><br /><strong>Konu:</strong> 925<br /><strong>Gönderim Zamanı:</strong> 10&nbsp;Eylül&nbsp;2024 Saat 13:29<br /><br />Merhaba Nursena,<div><br></div><div><span style=": rgb251, 251, 253;">Showmessage içerisinde LastExceptionMessage kullanarak hatanın sebebini öğrenebilirsin.</span></div><div><span style=": rgb251, 251, 253;"><a href="https://www.docs.clomosy.com/index.php/Error_Trapping" target="_blank" rel="nofollow">https://www.docs.clomosy.com/index.php/Error_Trapping</a></span></div><div><span style=": rgb251, 251, 253;"><br></span></div><div><span style=": rgb251, 251, 253;">İyi çalışmalar dilerim.</span></div>]]>
   </description>
   <pubDate>Tue, 10 Sep 2024 13:29:21 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=925&amp;PID=1804#1804</guid>
  </item> 
  <item>
   <title><![CDATA[hata : var mainform: TCLForm; AtistirmaliklarPage:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=925&amp;PID=1797#1797</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=226">kacar.nursena</a><br /><strong>Konu:</strong> 925<br /><strong>Gönderim Zamanı:</strong> 06&nbsp;Eylül&nbsp;2024 Saat 15:33<br /><br /><div>var</div><div>&nbsp; mainform: TCLForm;</div><div>&nbsp; AtistirmaliklarPage: TclProPanel;</div><div>&nbsp; Button: TClProButton;</div><div>&nbsp; ProductID: Integer;</div><div>&nbsp; ProductName: string;</div><div>&nbsp; ProductPrice: Double;</div><div>&nbsp; ProductImageURL: string;</div><div>&nbsp; ProductQuery: TclSqlQuery;</div><div><br></div><div>procedure SetupDatabaseConnection;</div><div>begin</div><div>&nbsp; // Veritabanı bağlantısını oluştur ve yapılandır</div><div>&nbsp; Clomosy.DBSQLServerConnect('SQL Server', 'clomosybakkal.database.windows.net', 'nrs', 'n.12345678', 'Bakkal', 1433);</div><div>end;</div><div><br></div><div>procedure LoadProductsToPage;</div><div>begin</div><div>&nbsp; // Ürün sorgusunu oluştur ve veritabanına bağlan</div><div>&nbsp; ProductQuery := TclSqlQuery.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; ProductQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; ProductQuery.SQL.Text := 'SELECT ProductID, ProductName, ProductPrice, ProductImageURL FROM Products WHERE Category = ''Atıştırmalık''';</div><div>&nbsp; &nbsp; ProductQuery.Open;</div><div><br></div><div>&nbsp; &nbsp; // Ürünleri döngüye al ve sayfada görüntüle</div><div>&nbsp; &nbsp; while not ProductQuery.Eof do</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; ProductID := ProductQuery.FieldByName('ProductID').AsInteger;</div><div>&nbsp; &nbsp; &nbsp; ProductName := ProductQuery.FieldByName('ProductName').AsString;</div><div>&nbsp; &nbsp; &nbsp; ProductPrice := ProductQuery.FieldByName('ProductPrice').AsFloat;</div><div>&nbsp; &nbsp; &nbsp; ProductImageURL := ProductQuery.FieldByName('ProductImageURL').AsString;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; // Buton oluştur ve yapılandır</div><div>&nbsp; &nbsp; &nbsp; Button := TClProButton.Create(AtistirmaliklarPage);&nbsp; // Buton AtistirmaliklarPage altında oluşturuluyor</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Width := 120;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Height := 120;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Text := ProductName;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; if Assigned(mainform) then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL); // Ürün resmini butona ekle</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; // Diğer buton özelliklerini ayarla</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundHeight := 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.RoundWidth := 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontVertAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.FontHorzAlign := palCenter;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.TextSettings.Font.Style := &#091;fsBold&#093;;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderColor := clAlphaColor.clHexToColor('#d1d1d1');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.clProSettings.BorderWidth := 1;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.SetclProSettings(Button.clProSettings);</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp; &nbsp; &nbsp; &nbsp;// on E: Exception do</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Error creating button: ');//+ E.Message);</div><div>&nbsp; &nbsp; &nbsp; end;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; finally</div><div>&nbsp; &nbsp; ProductQuery.Close;</div><div>&nbsp; &nbsp; ProductQuery.Free;</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>procedure AddProductPage;</div><div>begin</div><div>&nbsp; // Ürünlerin görüntüleneceği paneli oluştur</div><div>&nbsp; AtistirmaliklarPage := mainform.AddNewPanel(mainform, 'AtistirmaliklarPage');</div><div>&nbsp; if Assigned(AtistirmaliklarPage) then</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; AtistirmaliklarPage.Align := alClient;</div><div>&nbsp; &nbsp; AtistirmaliklarPage.Margins.Left := 10;</div><div>&nbsp; &nbsp; AtistirmaliklarPage.Margins.Right := 10;</div><div>&nbsp; &nbsp; AtistirmaliklarPage.Margins.Top := 5;</div><div>&nbsp; &nbsp; AtistirmaliklarPage.Margins.Bottom := 10;</div><div>&nbsp; &nbsp; AtistirmaliklarPage.clProSettings.BackgroundColor := clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; AtistirmaliklarPage.SetclProSettings(AtistirmaliklarPage.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; // Ürünleri sayfaya yükle</div><div>&nbsp; &nbsp; LoadProductsToPage;</div><div>&nbsp; end</div><div>&nbsp; else</div><div>&nbsp; &nbsp; ShowMessage('Failed to create AtistirmaliklarPage panel');</div><div>end;</div><div><br></div><div>begin</div><div>&nbsp; mainform := TCLForm.Create(nil);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; mainform.SetFormColor('#CBEDD5', '', clGNone);</div><div>&nbsp; &nbsp; SetupDatabaseConnection;</div><div>&nbsp; &nbsp; AddProductPage;</div><div>&nbsp; &nbsp; mainform.Run;</div><div>&nbsp; except</div><div>&nbsp; &nbsp;// on E: Exception do</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Error: ' );//+ E.Message);</div><div>&nbsp; end;</div><div>end.</div><div><br></div><div><br></div><div>kodda try'a girmiyor excepte düşüyor bağlantı hatası olabilir mi?</div>]]>
   </description>
   <pubDate>Fri, 06 Sep 2024 15:33:14 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=925&amp;PID=1797#1797</guid>
  </item> 
 </channel>
</rss>