Insert Symbol vs Chrw()

S

Steve Lang

Hi all,

I use an "en Space" character a lot in my work. In Office 2K, I could use
the chrW(8194) in my code to insert the correct character. In my coversion
to OfficeXP, I have noticed that there using this method gives a decidedly
different character in the document than using "Selection.InsertSymbol
CharacterNumber:=8194, Unicode:=True, Bias:=0"

However, both give 8194 when they are selected and tested using
AscW(Selection). What's up with that? They are different characters, but
have the same Unicode? Has anyone run up against this?

TIA and have a great day!

--
Stephen Lang
Legislative Counsel Bureau
Carson City, NV
GMT+8
slang at lcb <dot> state <dot> nv dot us
 
H

Harold Kless[MSFT}

Hi Stephen
I looked at this using Word 2000 and Word 2002 and I don't see a difference.
1. Selection.text = chrW(8194) displayed the same in both versions.
2. Insert Symbol - Special Characters en space - returned the same.
3. Selected the symbol and in the Visual Basic Editor Immediate Window
typed ?ascW(selection.text) and in both versions it returned 8194.

So I'm not reproducing what you're describing. Can you provide specific
steps I can follow to repro what you're seeing?
Thanks,
Harold Kless, MCSD
Support Professional
Microsoft Technical Support for Business Applications
(e-mail address removed)

--


This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
S

Steve Lang

Hi Harold,

Thanks for the response. I thought I was crazy when I tried repeating the
experience with a different document and it didn't work! Then I discovered
that the original doc that had the issue had a different set of
Compatibility Settings applied.

It took a while to track down, but if the setting "Use Word 97 line breaking
rules for Asian Text" is selected, there is a difference between the width
of the en-space inserted via symbol and that inserted by "Selection.TypeText
ChrW(8194)." The space generated by the code is - I'd guess - about twice
the width than that generated by the Symbol.

I tried this on a Word2000 platform and it does NOT generate different width
spaces.

I'll tried it on a different computer with Word XP - same result.

Thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top