How remove this exception


#1

double
double
variable are of string type. How to remove this error?


#2

Hi @mhk15,

Try changing the variable type to GenericValue variable. after fetching the value you can change into string variable if you want.

Regards,
Arivu :slight_smile:


#3

Thanks it worked


#4

while fetching date from excel sheet and displaying them in message box it is showing an error:
objref


#5

Hi @mhk15,

The value is NULL so its throwing the exception.

Try to Convert the value to string First.
Convert.ToString(yourGenericValue)

Regards,
Arivu :slight_smile: