11-05-2008 03:40 PM - edited 11-05-2008 03:46 PM
I have a series of 2 strings to port into a new string array. Because in some cases, I will have the valid strings & vice-versa, I should not use the For Loop to create a dynamic string array
The size of the array is depend on how many times I have the valid 2 strings. Can someone help me?
- I did try my own way (I have to use For Loop just to try), anyway I created a weird array that I could not extract those pairs of string later (please see the attach file)
Thank to any help,
11-05-2008 04:02 PM
Why not use the insert into array or the build array to accomplish this. Could you be a liitle bit more specific as to what you want to do.
11-05-2008 04:05 PM
11-05-2008 04:23 PM
11-05-2008 04:36 PM
plit string wrote:I have a series of 2 strings to port into a new string array.
What is your definition of "port into"?
plit string wrote:Because in some cases, I will have the valid strings & vice-versa, I should not use the For Loop to create a dynamic string array
What cases? What is the definition of a "valid string" vs. "invalid string"? How can we tell?
plit string wrote:- I did try my own way (I have to use For Loop just to try), anyway I created a weird array that I could not extract those pairs of string later (please see the attach file)
Your FOR loop has no purpose, because all you retain are the values from the last iteration. You can delete the FOR loop and wire a "4" diagram constant to the blue wire instead. Why do you thing that you have to use a FOR loop?
What do you mean by "extract those pairs of string"? What is "extract"? What "pairs of string"?
11-05-2008 04:37 PM
smercurio_fc wrote:
Aside: Why is it that everything you ask is "URGENT!!!"?![]()
Sometimes, the homework is due in the morning and it is already midnight. 😄
11-05-2008 08:12 PM
I did try with different ways but failed today, that was why I requested help. Here what I try to do:
1. Insert a series pair of strings into an array (un-known times):
- 'SN12345' & 'TP12345'
- 'AN12345' & 'SP12345'
- 'DN12345' & 'DP12345'
- ....... .......
- ....... .......
2. Retrieve those pairs later
It sounds so simple, but I am not able to do that. I hope that I explain clearly this time.
Thanks
11-05-2008 08:27 PM
I did try very hard with different ways but failed, I suppose to complete all my tasks of my project today, that was why I requested URGENT.
I only try LabView with little experiences & try to do catch-up my assignments, might be for someone like you ... it looks silly & I admit it!
If you do not want to help, I still have to try it out other ways!
Anyways, thank for spending time asking me this question
11-05-2008 08:32 PM
Please see my first reply, I am regret that I didn't describe clearly!
Thanks for trying to help!
11-05-2008 08:34 PM