Solved

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

Posted on 1997-09-21
15
316 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
 
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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now