enginkirtasiyeveyazilim Posted February 23, 2019 Share Posted February 23, 2019 Grid oluşturma hatası Selamun Aleyküm Arkadaşlar Grid Oluştururken son gelen veriyi yazıyor diğerlerini siliyor yardımcı olursanız sevinirim. Grid.SetCellText("Grid1", i, 0, "#", true); Grid.SetCellText("Grid1", i, 1, "Stok Kodu", true); Grid.SetCellText("Grid1", i, 2, "Ürün Adı", true); Grid.SetCellText("Grid1", i, 3, "Barkod", true); Grid.SetCellText("Grid1", i, 4, "Birim Fiyat", true); Grid.SetCellText("Grid1", i, 5, "Adet", true); Grid.SetCellText("Grid1", i, 6, "Marka", true); Grid.SetCellText("Grid1", i, 7, "Kategori", true); Grid.SetCellText("Grid1", i, 8, "Tutar", true); baglan(); db, err = SQLite3Connection:execute("SELECT * FROM anlik_satis"); row = db:fetch({},"a") ColumnCount = Grid.GetColumnCount("Grid1"); while row do id = row.id stok = row.stok_kod urun = row.urunadi barkod = row.barkod satis = row.satis adet = row.adet marka = row.marka kategori = row.kategori tutar = row.tutar for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 0, id, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 1, stok, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 2, urun, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 3, barkod, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 4, satis, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 5, adet, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 6, marka, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 7, kategori, true); end for i = 0, ColumnCount do result = Grid.SetCellText("Grid1", i, 8, tutar, true); end row = db:fetch(row,"a"); end result, err = db:close(); kapat(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.