<?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 : veri ekleme hatası</title>
  <link>https://forum.clomosy.com.tr/</link>
  <description><![CDATA[XML içerik linki; Clomosy | Forum : Genel &#304;&#351;lemler : veri ekleme hatası]]></description>
  <copyright>Copyright (c) 2006-2013 Web Wiz Forums - All Rights Reserved.</copyright>
  <pubDate>Mon, 04 May 2026 14:25:13 +0000</pubDate>
  <lastBuildDate>Wed, 25 Sep 2024 11:17:22 +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=937</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[veri ekleme hatası : Merhaba Nur Sena ,Ald&#305;&#287;&#305;n hatay&#305;...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1836#1836</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 937<br /><strong>Gönderim Zamanı:</strong> 25&nbsp;Eylül&nbsp;2024 Saat 11:17<br /><br />Merhaba Nur Sena ,<div>Aldığın hatayı ekler misin?</div>]]>
   </description>
   <pubDate>Wed, 25 Sep 2024 11:17:22 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1836#1836</guid>
  </item> 
  <item>
   <title><![CDATA[veri ekleme hatası : hala hata veriyor ]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1835#1835</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> 937<br /><strong>Gönderim Zamanı:</strong> 24&nbsp;Eylül&nbsp;2024 Saat 09:40<br /><br />hala hata veriyor]]>
   </description>
   <pubDate>Tue, 24 Sep 2024 09:40:00 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1835#1835</guid>
  </item> 
  <item>
   <title><![CDATA[veri ekleme hatası : Merhaba NurSenaA&#351;a&#287;&#305;daki gibi...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1834#1834</link>
   <description>
    <![CDATA[<strong>Yazar:</strong> <a href="https://forum.clomosy.com.tr/member_profile.asp?PF=106">Developer</a><br /><strong>Konu:</strong> 937<br /><strong>Gönderim Zamanı:</strong> 23&nbsp;Eylül&nbsp;2024 Saat 18:11<br /><br />Merhaba NurSena<div>Aşağıdaki gibi denebilir misin:<br><div><div>procedure insertToDatabase;</div><div>begin</div><div>&nbsp; insertQuery := TclSqlQuery.Create(self);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; insertQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; insertQuery.SQL.Text :=&nbsp; 'INSERT INTO Cart (ProductID, ProductName, ProductPrice, ProductImageURL) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'VALUES (' + IntToStr(ProductID) + ', ' + QuotedStr(ProductName) + ', ' + FloatToStr(ProductPrice) + ', ' + QuotedStr(ProductImageURL) + ')';</div><div>&nbsp; &nbsp; insertQuery.ExecSQL;</div><div>&nbsp; &nbsp; ShowMessage('Eklendi: ID=' + IntToStr(ProductID) + ', Ad=' + ProductName + ', Fiyat=' + FloatToStr(ProductPrice) + ' TL');</div><div>&nbsp; except</div><div>ShowMessage(insertQuery.SQL.Text); // Sorguyu görsel olarak incelemek için.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Veri eklerken hata: ' );</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; end;</div><div>end;</div></div></div>]]>
   </description>
   <pubDate>Mon, 23 Sep 2024 18:11:36 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1834#1834</guid>
  </item> 
  <item>
   <title><![CDATA[veri ekleme hatası : var mainform: TclForm; AtistirmaliklarPage:...]]></title>
   <link>https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1833#1833</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> 937<br /><strong>Gönderim Zamanı:</strong> 23&nbsp;Eylül&nbsp;2024 Saat 12:37<br /><br /><div><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: float;</div><div>&nbsp; ProductImageURL: string;</div><div>&nbsp; insertQuery, ProductQuery: TclSqlQuery;</div><div>&nbsp; pricelabel, namelabel: TclProLabel;</div><div>&nbsp; edtProductID, edtProductName, edtProductPrice, edtProductImageURL: TclEdit;</div><div>&nbsp; i, previousButtonLeft, previousButtonTop: Integer;</div><div>&nbsp; clickedBtn: TClProButton;</div><div>&nbsp; clickedProductID: Integer;</div><div>&nbsp; clickedProductName: string;</div><div>&nbsp; clickedProductPrice: Double;</div><div>&nbsp; clickedProductImageURL: string;</div><div><br></div><div>// Veritabanına veri ekleme prosedürü</div><div>procedure SetupDatabaseConnection;</div><div>begin</div><div>&nbsp; try</div><div>&nbsp; &nbsp; Clomosy.DBSQLServerConnect('SQL Server', 'su-db.database.windows.net', 'dbAdmin', 'Azure1234', 'suDb', 1433);</div><div>&nbsp; &nbsp; ShowMessage('Database connected successfully!');</div><div>&nbsp; except</div><div>&nbsp; &nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Database connection failed: ' );</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>// Insert data into the database</div><div>procedure insertToDatabase;</div><div>begin</div><div>&nbsp; insertQuery := TclSqlQuery.Create(self);</div><div>&nbsp; try</div><div>&nbsp; &nbsp; insertQuery.Connection := Clomosy.DBSQLServerConnection;</div><div>&nbsp; &nbsp; insertQuery.SQL.Text :=&nbsp; 'INSERT INTO Cart (ProductID, ProductName, ProductPrice, ProductImageURL) ' +</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'VALUES (' + IntToStr(ProductID) + ', ' + QuotedStr(ProductName) + ', ' + FloatToStr(ProductPrice) + ', ' + QuotedStr(ProductImageURL) + ')';</div><div>&nbsp; &nbsp; insertQuery.ExecSQL;</div><div>&nbsp; &nbsp; ShowMessage('Eklendi: ID=' + IntToStr(ProductID) + ', Ad=' + ProductName + ', Fiyat=' + FloatToStr(ProductPrice) + ' TL');</div><div>&nbsp; except</div><div>ShowMessage(insertQuery); // Sorguyu görsel olarak incelemek için.</div><div><br></div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Veri eklerken hata: ' );</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);ShowMessage('Exception Class: '+LastExceptionClassName+' Exception Message: '+LastExceptionMessage);</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>procedure BtnOnClick;</div><div>begin</div><div>&nbsp; clickedBtn := TClProButton(mainform.Clsender);</div><div>&nbsp;&nbsp;</div><div>&nbsp; clickedProductID := StrToInt(clickedBtn.Caption);</div><div>&nbsp; ShowMessage(clickedBtn.Caption);</div><div>&nbsp; ShowMessage(clickedProductID);</div><div>&nbsp; // Her butonun ürünü sorgudan seçilmeli</div><div>&nbsp; ProductQuery.First; // Sorgunun başına dön</div><div>&nbsp; while not ProductQuery.Eof do</div><div>&nbsp; begin</div><div>&nbsp; &nbsp; if ProductQuery.FieldByName('ProductID').AsInteger = clickedProductID then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; clickedProductName := ProductQuery.FieldByName('ProductName').AsString;</div><div>&nbsp; &nbsp; &nbsp; clickedProductPrice := ProductQuery.FieldByName('ProductPrice').AsFloat;</div><div>&nbsp; &nbsp; &nbsp; clickedProductImageURL := ProductQuery.FieldByName('ProductImageURL').AsString;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Ürün: ' + clickedProductName + ' Fiyat: ' + FloatToStr(clickedProductPrice) + ' TL');</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; // Ürün bilgilerini veritabanına ekle</div><div>&nbsp; &nbsp; &nbsp; ProductID := clickedProductID;</div><div>&nbsp; &nbsp; &nbsp; ProductName := clickedProductName;</div><div>&nbsp; &nbsp; &nbsp; ProductPrice := clickedProductPrice;</div><div>&nbsp; &nbsp; &nbsp; ProductImageURL := clickedProductImageURL;</div><div>&nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; insertToDatabase;</div><div>&nbsp; &nbsp; &nbsp; Exit;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; end;</div><div>&nbsp;&nbsp;</div><div>&nbsp; ShowMessage('ProductQuery açık değil veya ürün bulunamadı!');</div><div>end;</div><div><br></div><div><br></div><div>// Ürünleri sayfaya yükleme prosedürü</div><div>procedure LoadProductsToPage;</div><div>begin</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';</div><div>&nbsp; &nbsp; ProductQuery.Open;</div><div><br></div><div>&nbsp; &nbsp; previousButtonLeft := 10;</div><div>&nbsp; &nbsp; previousButtonTop := 800;</div><div>&nbsp; &nbsp; i := 1;</div><div><br></div><div>&nbsp; &nbsp; while not ProductQuery.Eof do</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; try</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductID := ProductQuery.FieldByName('ProductID').AsInteger;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductName := ProductQuery.FieldByName('ProductName').AsString;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductPrice := ProductQuery.FieldByName('ProductPrice').AsFloat;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductImageURL := ProductQuery.FieldByName('ProductImageURL').AsString;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button := mainform.AddNewProButton(AtistirmaliklarPage, 'Button' + IntToStr(i), '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; mainform.AddNewEvent(Button, tbeOnClick, 'InsertToDatabase');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Width := 150;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Height := 150;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Button.Caption := IntToStr(i);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if (ProductID mod 2 = 1) then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := previousButtonTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := 0;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Left := 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; previousButtonTop := Button.Top - Button.Height - 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; end</div><div>&nbsp; &nbsp; &nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Bottom := previousButtonTop;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Right := 300;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Button.Margins.Left := previousButtonLeft;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; previousButtonLeft := Button.Left - Button.Width - 10;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; end;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; if Assigned(mainform) then</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; mainform.SetImage(Button, ProductImageURL);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel := mainform.AddNewProLabel(AtistirmaliklarPage, 'namelabel' + IntToStr(i), '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Margins.Bottom := Button.Margins.Bottom - Button.Height - 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Margins.Left := Button.Margins.Left;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Margins.Right := Button.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; namelabel.Text := ProductName;</div><div><br></div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel := mainform.AddNewProLabel(AtistirmaliklarPage, 'pricelabel' + IntToStr(i), '');</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Margins.Bottom := namelabel.Margins.Bottom - namelabel.Height - 5;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Margins.Left := namelabel.Margins.Left;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Margins.Right := namelabel.Margins.Right;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; pricelabel.Text := Format('Fiyat: %.2f TL', &#091;ProductPrice&#093;);</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; mainform.AddNewEvent(Button, tbeOnClick, 'BtnOnClick');</div><div>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; ProductQuery.Next;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; Inc(i);</div><div>&nbsp; &nbsp; &nbsp; except</div><div>&nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ShowMessage('Ürün bilgileri işlenirken hata: ' );</div><div>&nbsp; &nbsp; &nbsp; end;</div><div>&nbsp; &nbsp; end;</div><div>&nbsp; except</div><div>&nbsp; &nbsp;&nbsp;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Sorgu çalıştırılamadı! Hata: ' );</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>// Ürün ekleme sayfasını oluşturma prosedürü</div><div>procedure AddProductPage;</div><div>begin</div><div>&nbsp; try</div><div>&nbsp; &nbsp; AtistirmaliklarPage := mainform.AddNewProPanel(mainform, 'AtistirmaliklarPage');</div><div>&nbsp; &nbsp; if Assigned(AtistirmaliklarPage) then</div><div>&nbsp; &nbsp; begin</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Align := alNone;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Width := 600;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Height := 800;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Left := 50;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Top := 50;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Left := 10;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Right := 10;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Top := 5;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.Margins.Bottom := 10;</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.clProSettings.BackgroundColor := clAlphaColor.clHexToColor('#ffffff');</div><div>&nbsp; &nbsp; &nbsp; AtistirmaliklarPage.SetclProSettings(AtistirmaliklarPage.clProSettings);</div><div><br></div><div>&nbsp; &nbsp; &nbsp; LoadProductsToPage;</div><div>&nbsp; &nbsp; end</div><div>&nbsp; &nbsp; else</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Atıştırmalıklar sayfası oluşturulamadı');</div><div>&nbsp; except</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Panel oluşturulurken hata: ' );</div><div>&nbsp; end;</div><div>end;</div><div><br></div><div>// Ana program akışı</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;</div><div>&nbsp; &nbsp; &nbsp; ShowMessage('Ana form çalıştırılırken hata: ' );</div><div>&nbsp; end;</div><div>end.</div></div><div><br></div><div>veri eklerken hata alıyorum:</div><div><br></div><div><img src="" border="0" /></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div>]]>
   </description>
   <pubDate>Mon, 23 Sep 2024 12:37:44 +0000</pubDate>
   <guid isPermaLink="true">https://forum.clomosy.com.tr/forum_posts.asp?TID=937&amp;PID=1833#1833</guid>
  </item> 
 </channel>
</rss>