Jump to content

thejavasea

Members
  • Content Count

    6
  • Joined

  • Last visited

  1. Works just fine but I want to do that while populating grid cells. try vv:= TJson.parse(Sender.ResponseText); cv.RowCount:= 182; for i:= 0 to cv.RowCount - 1 do Begin cv.Cells[i,0]:=vv.countryitems['0'][inttostr(i+1)].title; cv.Cells[i,1]:=vv.countryitems['0'][inttostr(i+1)].total_cases; cv.Cells[i,2]:=vv.countryitems['0'][inttostr(i+1)].total_new_cases_today; cv.Cells[i,3]:=vv.countryitems['0'][inttostr(i+1)].total_deaths; cv.Cells[i,4]:=vv.countryitems['0'][inttostr(i+1)].total_new_deaths_today; cv.Cells[i,5]:=vv.countryitems['0'][inttostr(i+1)].total_recovered; cv.Cells[i,6]:=vv.countryitems['0'][inttostr(i+1)].total_active_cases; cv.Cells[i,7]:=vv.countryitems['0'][inttostr(i+1)].total_serious_cases; end; finally Sender.free; end;
  2. Is it possible to set color or background of TStringGrid Cell?
  3. Thank you so much for your help. All works just fine this way, it can't be done better than that (easy, clear and flexible). Again, thank you.
  4. Thanks a lot for your immediate response, this is a great big step forward.
  5. I tested it and it works like a charm. I would like you to help with P5JS
×
×
  • Create New...