Hi, I am attempting to pick up values from an excel spread sheet.
The first cell is null and the code catches it.
The second cell is a double and the same code that checks for null fails.
Can I and how do I get around this. Thanks,
I only want the cell values that are a double and convert these values to string.
The first cell is null and the code catches it.
The second cell is a double and the same code that checks for null fails.
Can I and how do I get around this. Thanks,
I only want the cell values that are a double and convert these values to string.
C#:
for (int i = 3; i < cnt + 1; i++)
{
string TempText = (xlWorkSheet.Cells[i, 5].Value2).ToString();
MessageBox.Show(TempText);
if (TempText != null)
{
etc