08-03-2015 10:39 AM
Hola me podrían orientar, lo que pasa que quiero pasar de string a un array 2D digamos que tengo esto:
Este es mi string:
5 ene 2013 403 5 ene 2013 504 3701
5 feb 2013 876 5 feb 2013 985 3109
6 mar 2013 354 6 mar 2013 466 3112
3 abri 2013 827 3 abri 2013 943 3116
2 may 2013 298 2 may 2013 298 3124
Y me gustaría hacerlo un array 2D para que quede esta forma
1era 2da 3era 4ta 5ta <-- (Eso no, solo representa las columnas)
5 ene 2013 403 5 ene 2013 504 3701
5 feb 2013 876 5 feb 2013 985 3109
6 mar 2013 354 6 mar 2013 466 3112
3 abri 2013 827 3 abri 2013 943 3116
2 may 2013 298 2 may 2013 298 3124
Espero me puedan ayudar o me den una idea de como pordría resolverlo. De antemano gracias.
08-03-2015 02:56 PM
Hi there,
If you have a multiline string, you can use the "Pick Line" function to get one line at a time. If the data you want in different columns is separated by a token (space, tab, etc.) you use the "Scan String for Tokens" functions to get the different pieces of your string. Space will not work though, because some of your data is separated by spaces (ex: "5 ene 2013" needs to stay together.)