Stringgrid - don't understand failure to update a cell lazarus / 55-TAChart ---------------------------------------------------------------------- jbmckim · 2020-07-23 18:17 In the code below strTest updates correctly on the call to ...WvLengthSetting();.  However, the subsequent update of strTest, (i.e. strTest := InputStringGrid.Cells[WAVELENGTH_COL,iWvLngthBeingSet]) returns the value the cell contained prior to the attempted update.  (Insert swearing emoji here.) This is called from a timer but the grid is in the same Unit as the timer. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i procedure TExitMainForm.WaveLengthBySpecTimerTimer(Sender: TObject);const  WAVELENGTH_COL : integer = 8;var  strTest : string = ''; begin   if (SpecWvLengthSetupForm.Visible = false) then   begin      strTest :=  SpecList[iWvLngthBeingSet].WvLengthSetting();       InputStringGrid.Cells[WAVELENGTH_COL,iWvLngthBeingSet]                     := SpecList[iWvLngthBeingSet].WvLengthSetting();      strTest := InputStringGrid.Cells[WAVELENGTH_COL,iWvLngthBeingSet];      iWvLngthBeingSet := -1;     WaveLengthBySpecTimer.Enabled := false;   end; end; ---------------------------------------------------------------------- Blaazen · 2020-07-23 18:37 Code looks fine.  Put breakpoints or writeln(); commands between lines to see what actually is in cell and in strTest.