08-29-2010 06:02 AM
Hi
I am trying to build a 1D array of strings containing numbers where the value inserted into the array is increased by n'th step.
E.g. the length of the array can be arbitrary, let's say an array length of 107. The values I want to fill the array with starts from "1" (including " ", therefore a string), and for each 10th iteration the value is is increase by +1.
The should look something like this then
"1"
"1"
...
"1"
"2"
"2"
...
"2"
and so on until an array length of 107 is reached.
I tried something with some for loops, but i can't seem to get it to work.
Solved! Go to Solution.
08-29-2010 06:19 AM
Hey,
Try this.. you may have to insert different string functions to isolate the number if you're string is anything more then just a number.
- Rkll
08-29-2010 08:32 AM
Felix
08-29-2010 09:47 AM - edited 08-29-2010 09:47 AM
Why make things complicated.
Add a number to string as needed.
/Y
08-29-2010 11:24 AM
That is very neat. I just added a concatenate string to add " before and after the number, which solved my problem.
Thank you very much.
02-14-2011 06:13 AM
I was searching like this vi. I played a little bit on it but exactly what I need. Thanks alot.