Solved

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

Posted on 1997-09-21
15
324 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

728 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