Solved

Display " and chr$(151) in a help file, how?

Posted on 1997-09-21
15
320 Views
Last Modified: 2006-11-17
I found two characters may not be displyed in a help file although they can be seen in the rtf file. The characters are double quotation mark " and a nonprinting character chr$(151).
Can you tell me how to display them on the help file, or point out what wrong I did?
0
Comment
Question by:zhuhail
  • 9
  • 6
15 Comments
 

Author Comment

by:zhuhail
ID: 1435644
Edited text of question
0
 

Author Comment

by:zhuhail
ID: 1435645
Hi Experts,

My question got no reply....
Can you tell me (by comments) why ? :-)

Thank you.
0
 
LVL 3

Accepted Solution

by:
vmpn earned 50 total points
ID: 1435646
I got to go to college right now. I'll try to see how it is possible to solve your problem, in the evening . Meanwhile could you tell me what system you are working on, what editor do you use, what help compiler do you use and anything else that you might think is related to the question.

Sincerely,
VMPN
0
Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
LVL 3

Expert Comment

by:vmpn
ID: 1435647
Sorry, I clicked on Answer instead of Comment just give F for the answer, to put question in unlocked area.

Sincerely,
VMPN
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435648
I really need the information I asked for above to give you an answer.

Sincerely,
VMPN
0
 

Author Comment

by:zhuhail
ID: 1435649
Hi vmpn,

Sorry, I havn't got chance to read your answer and comments.
Now here you go:
Editor  MS Word 6.0 under Windows 95
Compiler  hc.exe (comes from VB4)under Windows 95
The nonprinting character chr$(151) may be displayed on Word by copying from a text box in run time of a VB program. However, it can not been seen in the help file although several nonprinting characters (again, copied from a text box in run time and pasted to the .rft file in Word) may be displyed in the same help file!

I think that is all and believe that you can answer me correctly........don't want to reject you :-)

Cheers.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435650
Hi zhuhail,

I am on the brake right right now (in college), so I can't check it yet. But here what you should try to do.  Instead of copying and pasting, use menu "Insert", "Symbol" and choose the symbol or the symbol corresponding to Chr$(151). If that wont help add acomment. Next time I'll be working from home, so I'll try to check if those symbols have some special meaning for winhelp.exe. NOW it is 12:26 Eastern time i'll be checking for new comments at about 18:00 Eastern.

Sincrely,
VMPN


0
 

Author Comment

by:zhuhail
ID: 1435651
Hi Vmpn,

The problems are

1. The double quotation mark " may not be seen in the help file. But it is only been typed into the rft file not been
copied and pasted.
2. chr$(151) is a nonprinting character ( a long minus sign)
which may not be inserted into a text and that is why I
have got to use copy-past.....  

Cheers.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435652
I think I got the answer.  However it will require rtf editing.  In order to insert special character you need to to the following:
\'hh   - where hh is hex value of the symbol you want to insert 97 ( 151 in dec.) for long dash and 22 (33 dec.) for double quote.  This has to be modified directly in rtf file using text editor, because Word modifies \' to \\\ rqote.

I checked this will work.

Sincerely,
VMPN


0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435653
I did not make it clear that you should: _insert_ \'hh.

Sincerely,
VMPN

0
 

Author Comment

by:zhuhail
ID: 1435654
Hi Vmpn,

I am not very clear.... I think you suggested me
open a rtf file by a text editor, say Notepad, and do insert \'.
However, I can not find "insert" in the menu of Notepad.
I believe that I misunderstood your suggestion :-(


0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435655
Sorry, by insert I meant _type_ somether in the middle of the text you want the special character to be, when I talk about manu I would say in menu blablabal sllect "Menu Item", "Menu Subitem".  I hope I made myself clear. And for editieng you can use any editor that does not recognize rtf, so it would not modify what you are typing.  So you type backslash and then single quote and then two hex digits wich correspond to code of the character you want.  For Chr$(151) you would type \'97, since Hex 97 is equal to Dec 151.

Sincrely,
VMPN
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435656
Just to be sure by "it would not modify what you are typing.", I mean that it will save the text as you type without anyconversios made to it.

Sincerely,
VMPN
0
 

Author Comment

by:zhuhail
ID: 1435657
Hi Vmpn,

Yes, I got that and that is very interesting: you can make a
rtf file by a text editor.....although no one would like to
do the whole text :-)

Thank you for your help. I knew you can solve that!

Cheers.
0
 
LVL 3

Expert Comment

by:vmpn
ID: 1435658
You welcome.
Thats what I am here for.
VMPN
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question