For each loop C#

Hi,
Ia m trying to read a column trough an excel qhit the following code:

CurrentRow[“ASIN”].ToString

But I am getting this instead of the value in cell A2 :

image

I guess it’s probably a syntax issue but I have also tried like this:

CurrentRow(“ASIN”).ToString

Then I got: Non-invocable member cannot be used like a method

Probably a simple qs, but I am not able to make it work.

Thank you all !!

Hi @javierdavidh ,

Could you maybe try with the below :

CurrentRow["ASIN"].ToString()
1 Like

@javierdavidh

Please try like this

Currentrow["ASIN"] directly or if you want to cast to string then

Convert.ToString(currentRow["ASIN"])

Hope this helps

Cheers

HI @supermanPunch the parenthesis () made the truc !!!

Thanks !

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.