Hi, im trying into convert column into array of string can anyone help me in this
Thank you.
Check4.xaml (18.8 KB)
Hi, im trying into convert column into array of string can anyone help me in this
Thank you.
Check4.xaml (18.8 KB)
Read Range (Read Excel data into dtReportOutput)
Assign (Convert âEmployee Codeâ column to an array of strings)
employeeCodeArray= dtReportOutput.AsEnumerable().Select(Function(row) row.Field(Of String)("Employee Code")).ToArray()
Hope it helps!!
Unable to cast object of type âSystem.Doubleâ to type âSystem.Stringâ. im having this error when i debug how can i fix this can you explain in detail
employeeCodeArray= dtReportOutput.AsEnumerable().Select(Function(row) row.Field(Of Double)("Employee Code")).ToArray()
Store this output in array of double.
Hope it helps
Hi,
you can use below expression in assign activity after read range(dtOutput)
EmployeeCodeArray = dtOutput.AsEnumerable().Select(Function(row) row(âEmployee Codeâ).ToString()).ToArray()
This usually occurs when u reading column of different type and mentioning as string while enumerating it
So better donât mention my type to read column instead u can convert that to string like this
arr_output = yourdatatablename.AsEnumerable().Select(Function(a) a(âyourcolumnnameâ).ToString).ToArray()
Me here arr_output is a variable of type array of string
Hope this helps
Cheers @Lava_Salagala