Jump to content

enginkirtasiyeveyazilim

Üye
  • Posts

    10
  • Joined

  • Last visited

Posts posted by enginkirtasiyeveyazilim

  1. 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();
    

     

  2. abi neye göre veri gönderecez reporlayacak biraz açıklar mısın? diğer sefer yaptığın gibi bir video yapar çeker misin

     

    abi neye göre veri gönderecez reporlayacak biraz açıklar mısın? diğer sefer yaptığın gibi bir video yapar çeker misin

     

    aldığım hata 

     

     

    https://prnt.sc/k0wp4j

     

×
×
  • Create New...