LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

2012 string copy and paste

Solved!
Go to solution

In 2012, if I copy and paste from one string to another, the text turns on Bold and Underline.  Does this happen you everyone else?  Is this a bug that has been or need to be reported? 

 

 

String copy.jpg

 

0 Kudos
Message 1 of 7
(3,538 Views)

Most likely, the array on the right had the font formatted as bold and underlined. If you copy and paste the data from the data operations right click menu, it will copy the data over, but maintain the formatting that is already defined for the destination array. You can simply define the font for the right array by selecting it, then defining the font properties by clicking on the font menu, then style menu, then select Plain as shown below.

 

Text Format.png

0 Kudos
Message 2 of 7
(3,522 Views)

No, I am showing the before and after copy and paste.  Within the string array, if I copy from one location to another, the whole string array turns bold and underlined. 

0 Kudos
Message 3 of 7
(3,516 Views)

This problem seems to be intermittent.  I think it might have something to do with the original source code generated by 2010.  If I copy a string from 2010 to 2012, it will do it every time.  But at the time of my first post, I was not copying from 2010.  And yes I did a mass compile.

0 Kudos
Message 4 of 7
(3,510 Views)
Solution
Accepted by topic author nonecure

This is a known bug and happens if you specify a specific appfont in the ini file (or in the options dialog equivalent).

 

It has been reported by me long ago, so NI is aware of it and there is a CAR.

Message 5 of 7
(3,501 Views)

Thanks.

 

So to fix the dreaded XP vs 7 font problem by setting them in the ini, we now get bold and underline strings.  I normally stay 1 version behind, but 2012 has some cool features.

0 Kudos
Message 6 of 7
(3,492 Views)

This problem existed way before LabVIEW 2012 but because of the random nature, you might not have bumped into it. It is not a new problem.

 

You are lucky with only bold/underline. Long ago, I got 20pt greek symbol (or similar) font for a while when pasting. 😮

0 Kudos
Message 7 of 7
(3,485 Views)