Associate
I have a DataTable, imported from a CSV file; and I need to split a reference field up
Reference
"Widget1 12x31x431x3256mm"
"Widget2 1265x1x31x56mm Back To Back"
"Widget1 432x3214x1x3mm"
"Widget1 4x32x15x3mm Back To Back"
The output I would like to see is
I initially set up a loop to iterate over each line and its fine for small files, but the files could be 5000-6000 lines long and a brief test of one at 2500 lines long and it takes around 5 mins to process.
Anyone offer advice on how to do this more efficiently?
Matt
Reference
"Widget1 12x31x431x3256mm"
"Widget2 1265x1x31x56mm Back To Back"
"Widget1 432x3214x1x3mm"
"Widget1 4x32x15x3mm Back To Back"
The output I would like to see is
Code:
Reference Product Dim1 Dim2 Dim3 Dim4
Widget1 12x31x431x3256mm Widget1 12 31 431 3256
Widget2 1265x1x31x56mm Back To Back Widget2-B2B 1265 1 31 56
Widget1 432x3214x1x3mm Widget1 432 3214 1 3
Widget1 432x3214x1x3mm Back To Back Widget1-B2B 4 32 15 3
I initially set up a loop to iterate over each line and its fine for small files, but the files could be 5000-6000 lines long and a brief test of one at 2500 lines long and it takes around 5 mins to process.
Anyone offer advice on how to do this more efficiently?
Matt