LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

special characters in strings

Hi,
can somebody please tell me how to include "line" characters (ASCII
179-218) into a string constant. Creating a margin line of a report, for
instance, in WinWord and "cut and paste" into a LV string constant will
show totally different characters. Any ideas?

Thanks

Klaus Hoelscher
0 Kudos
Message 1 of 6
(4,970 Views)
As long as i know pressing ALT while you type the ASCII number will do that, even in string constants.
Hope this helps
Message 2 of 6
(4,970 Views)
Alas, this does not work. For instance, when entering ALT+182 (as seen
on my ASCII table) you expect to get a double line with a single line
centered perpendicular to this. Instead you will get an "A" with an
accent on top.
I noticed that my ANSI table does not list these special line
characters. May be this is the reason. However, if there are no line
characters available in LV, I don't have any idea how to get this, e.g.
by means of different methods.
Nevertheless, I am keen on using them since my report needs some lines
used as margin and horizontal separator.

Klaus




Gorka Larrea schrieb in im Newsbeitrag:
506500000005000000E12B0000-986697009000@quiq.com...
> As long as i know pressing ALT while you type the ASCII number will do
> tha
t, even in string constants.
> Hope this helps
0 Kudos
Message 3 of 6
(4,970 Views)
That depends on which font you are using, you can check the windows character map to see if your default font has those line characters, and if not, you can change the font for your vi, you can even combine different fonts in a constant, but think that when they are passed to a string indicator they all become the default font.
Hope this helps
0 Kudos
Message 5 of 6
(4,970 Views)
If you're producing formal reports with Labview, have you not considered
using Word or Excel via ActiveX? There's also report generation functions
now in Labview, although I've never tried them out.

Alternatively, find a font which has the ASCII coding as you want.As an
example, on my machine I have a font called "Terminal" which does seem to
have the symbols you want- I don't know if this is a supplied font or if
some application installed it.

Klaus Hoelscher wrote in message
news:3b177c00@newsgroups....
> Alas, this does not work. For instance, when entering ALT+182 (as seen
> on my ASCII table) you expect to get a double line with a single line
> centered perpendicular to this. Instead you will get an "A" with an
> accent
on top.
0 Kudos
Message 6 of 6
(4,970 Views)
Try setting the constant to different fonts, I've found that the terminal font displays most characters how I want.

If you want to manually type in ASCII characters right click on the constant and select ""\" Codes Display" from the drop down menu. Then type \XX into the constant where XX is the ASCII HEX value of the cahracter you want to display. When you set it back to normal display you should see the character.

Hope this helps

Brian
0 Kudos
Message 4 of 6
(4,970 Views)