LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Updating a String Array in Labview 5.1

I have been attempting to add new elements (was 20 - Now needs to be 25) to 3 seperate string array for bookmarks to a word doc. I have tried the following -
 
1.) Added values to elements 20 -24 & Saved.   Outcome - No values saved in elements 20 -24.
2.)  Clicked on Updated Values while typing for the array. Saved Library. Outsome - No Values saved in Elements 20 -24.
3.) Redo Item #2 with Make Current Value Default. Outcome - Depending on Element selected, that becomes all elements values above 25th value.
 
Any Help would be appreciated.
 
Greg
Greg
0 Kudos
Message 1 of 5
(3,245 Views)
What do you exactly mean by a 'String Array' is that an array of strings?
And how does this relate to word?
What is it you did (code-wise) with the adding and saving.
Update values while typing is only applicable for the string inside the array not the array itself.
Adding two arrays would normally be done like this:


Ton


Message Edited by TonP on 11-07-2007 10:16 PM
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 2 of 5
(3,241 Views)

This is a static sting array that has bookmarks for printing to a word document. See attached doc. The arrays are hiddne from the front panel. I can not add 20th to 24th elements I need.

 

 

Greg
0 Kudos
Message 3 of 5
(3,216 Views)
Hi Shep,

in your doc there is only a small code snippet showing some indexing functions...

Why don't you add your vi? Why do you use "index array" functions when you want to add to an array?
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 5
(3,209 Views)
The problem was I was looking for "Make Default" in the wrong place. I kept looking for this parameter as an array function not a VI function.  It looks like an good now.  Rochester's Jay Grassel had me looking for this "Make Deafult".
 
Thanks for everyone's help.
 
Greg
Greg
0 Kudos
Message 5 of 5
(3,195 Views)