I am new to Delphi programming so any help would be greatly appreciated.
I am looping through a TStringGrid checking the value of each cell. If there is no value I would like to remove the cell. I am having trouble with checking the value of the cell.
Each of the things I have tried below when in debug mode tell me that is an inaccessable value. Even if I let it run it does not evaluate properly.
If VarIsNull(Promotion_No_Grid.Cells[0,i - 1]) then...
If Length(Promotion_No_Grid.Cells[0,i - 1]) > 0 then...
If Trim(Promotion_No_Grid.Cells[0,i - l]) <> '' then...
What am I doing wrong?