Quantcast
Channel: Adobe Community: Message List - FrameMaker Scripting
Viewing all articles
Browse latest Browse all 3715

Check if a single Text Item in a cell is bold and then grab the string that is bold

$
0
0

I have written a script that runs through a table and parses out the information I need to create another table with some added information.

The last piece that I can't seem to figure out is how to check if some text in a cell is bold and then grab said text to put in the new table.

I will give a small table demo of what I am try to retrieve.

 

Table A.

Column 1Description
123456This is a description (This is a note)
789123

This is a description (This is note A) (This is note B) (This is more stuff that isn't needed.

 

Table B.

Column 1Column 2Note
1123456(This is a note)
2789123(This is note A) (This is note B)

 

 

I can pull all of the other information across that I am trying to get without any issue.

I can't seem to figure out how to check the formatting of a TextItem to see if it is bold. I have attempted to use cell_Desc.GetText(Constants.FTI_CharPropsChange). This allows me to narrow the choice down to any cell with special formatting into it. I haven't been able to limit it down to bold. I have attempted to do a few variations with .Constants.FTI_CharPropsChange  and Constants.FTF_WEIGHT without success. This was attempting to completely narrow down the cells to those with only Bold formatting in them. What I really need is to grab the Text Item(s) out of the Text Items in a cell that are bold. Any pointers in the right direction would be greatly appreciated. Also, let me know if you have any questions that would help get to the right answer.

 

Thanks,

 

Steven


Viewing all articles
Browse latest Browse all 3715

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>