取消
显示结果 
搜索替代 
您的意思是: 

shifting array's index down

已解决!
转到解答

I am trying to get my array to shift its index down so that everytime i submit an employee it will be added to a different index such as a[0] is submitted and than when i go to add another employee it will shift to a[1].

 

here is my code 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 项奖励
1 条消息(共 22 条)
4,982 次查看
解答
已被主题作者 Harold_Timmis 接受
It's really simple if you understand one of the basic functions in LabVIEW - the shift register. With this and a Build Array, there is not much to the code. Here's an example. I also used an event structure. You would need to modify it so that when the submit is clicked, the values in the cluster are cleared.
2 条消息(共 22 条)
4,970 次查看
I dont want values to be cleared I want to add employees to the list an update list so when i add an employee does not replace an employee already in the system.
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 项奖励
3 条消息(共 22 条)
4,944 次查看
That is exactly what the provided example will do for you.  Have you tried it yet?
4 条消息(共 22 条)
4,941 次查看
Please mark Dennis' message as the solution to your answer.  You marked your own message where you doubted his correct solution.  You will need to use the Options menu to the upper right of your message to unmark you reply as the solution.
0 项奖励
5 条消息(共 22 条)
4,930 次查看

I can't open this file because i am using 8.2 right now

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 项奖励
6 条消息(共 22 条)
4,890 次查看
Sorry. Here's a version in 8.0.
0 项奖励
7 条消息(共 22 条)
4,886 次查看

This worked great but when I submitted my product I would lose the employee's I have entered and vise versa, so I modified it to where that wouldn't happen; here is the code I used:

 

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 项奖励
8 条消息(共 22 条)
4,872 次查看

thank you dennis for helping me out

Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 项奖励
9 条消息(共 22 条)
4,871 次查看
for what ever reason the code I created worked for a while now it does not? it will not let me enter any new objects and when i try to enter in more objects my program freezes to where i have to abort the program I can't figure out why??
Harold Timmis
htimmis@fit.edu
Orlando,Fl
*Kudos always welcome:)
0 项奖励
10 条消息(共 22 条)
4,863 次查看