Members of the forum:
I am trying to find the ampersand character (&) in order to display it in a
simple text window.
This is more difficult than it sounds. Using the following function:
showText=: 3 : 0
80 120 showText y
:
if. (0~:L. y)*.2=#y do. 'font txt'=. y else. 'font txt'=. 'Courier';y
end.
wd 'pc quoteshow;xywh 0 0 ',(":x),';cc stcWin static;pas 0 0'
wd 'setfont stcWin "',font,'" 12;setcolor stcWin 255 255 255 0 0 0 0 0 0'
wd 'set stcWin *',txt
wd 'setshow stcWin 1;pshow'
)
thusly
showText ,LF,~"_1]16 32$,(194{a.),.}.a.
and
showText ,LF,~"_1]16 32$,(195{a.),.}.a.
I can see many useful characters but not the ampersand; it follows the
percent sign (%)
in a..
Does anyone else see it? Does anyone know where it's hiding?
I'm using J 6.01.
Thanks,
Devon
--
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm