LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to know about the the index of the table which has been put into a word file through bookmark ?

Solved!
Go to solution

Hello everyone, I am new to this platform and I am stuck with something and do not know how to fix it.

So I have a template file in which there are fixed number of tables and i created several bookmarks in the template as well. I have inserted tables at these bookmarks and now in order to color the background of those bookmarked tables I need to have the index of these tables which I do not know how to get it. Is there a way to know the indexes of these tables which are at the bookmark ?

Thank you in advance !

0 Kudos
Message 1 of 4
(2,774 Views)
Solution
Accepted by topic author Pukhtun_Yum

Yes.  You'll basically need to iterate thru each table in the document, select it, and check to see if there is a bookmark within the selection. 

Example_VI_BD.png

Edit: For some reason, I cannot embed the png file.  

Editt: Embed doesn't work in Firefox but does work in Chrome.  

aputman
Message 2 of 4
(2,725 Views)

Thank you so much for your assistance.

I have another question as well if you are generous enough to help me out.

I have 1d array of string which i have taken from a CSV file, the array is quiet big its like 3000 parameters in it. I am looking for a technique to extract specific data from from each string parameter. for example SLR_D12_RC2_VS7.0_VL6.6_SL1 is one parameter and i would like to extract RC, VS7.0, VL6.6, SL1 from it. Similarly there are many more parameters and the values that i need are separated by _ (underscore).

How would it be possible.

Thank you again.

0 Kudos
Message 3 of 4
(2,551 Views)

If the proposed solution answered your question, please mark it as a solution. This is helpful for other experts to know that a question has been answered and it helps future forum users to jump straight to the solution if they have a similar question and they encounter this post thru a forum search.  

 


@Pukhtun_Yum wrote:

I have another question as well if you are generous enough to help me out.


You would be better served by posting another topic specific to this question.  I can suggest a method or two but there may be better methods.

 

One method is to autoindex your array with a for loop.  Within the for loop, use the Spreadsheet String to Array function with the underscore as the delimiter, to create an array of parameters for each string.  This could then be added back into an autoindexed output tunnel to create a 2d array of your parameter values.  Or you could act on those values within the for loop, depending on your requirements.  

aputman
0 Kudos
Message 4 of 4
(2,542 Views)