hi,
i have excel file and columns like–> Model,Color, price
if price is >500 i want to write in text file.
i tried but it showing error …
can anybody help…
…Pendrive.xlsx (11.4 KB)
Hi @Anand_Designer,
What do you want to write in text file?
What’s the error you are facing?
Cheers
@Anand_Designer
Okay Do this,
Use For each row, If Cint(row(“Price”).ToString.Split("₹"C)(1))>500 then write to text file.
Dont use For each
Cheers
Also note that you are using a for each on item as DataRow but your if you are using row
You have to change your condition in the following
Double.Parse(item.Item(2).ToStiring)>500
@Pradeep_Shiv
i followed your code, but it shows error in append line
You have to write a variable of type string inside the Input field in Append Line.
So for example change row to row(“Price”).ToString in order to write the price into the file
Thanks for given solution @Pradeep_Shiv @stefano_negro,
Good
Happy learning!
@Anand_Designer

