Unicode doesn't seem to be supported in VB5 controls 
Author Message
 Unicode doesn't seem to be supported in VB5 controls

I am having a hell of a time trying to get a Unicode character to appear in
a text box/rich text box/label etc....  I have tried varying controls to see
if any can support Unicode but I have not had any success.  All I want to do
is show an arrow pointing up in a text box.  If you go into character map,
using the font "Courier New" and select the subset "Arrows", and select the
up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb
apps text box, all you get is a question mark, which means the code is
unknown.  The control has been set to the correct font but it doesn't
work!!!!

I have tried using the CHRW function but this also gave me the famous
question mark.  The code for the up arrow is 8593.  The only way I was able
to determine this was to use a program which can use Unicode - excel, and
write a script to go through all codes until I found the code I wanted.

In then replicated the chrw(8593) function in VB (which works fine in
Excel), but this was to no avail.

Does anyone have an solution to my delema?  Does VB5 controls support the
new standard developed by Microsoft for extended characters?

Regards,

Grant



Thu, 31 Aug 2000 03:00:00 GMT  
 Unicode doesn't seem to be supported in VB5 controls

Yep,
    VB 5 doesn't support Unicode (or at least under Windows95).  I ended up
using extended characters and changing the codepages.  Also, there is no easy
way to change codepages in runtime.

Dave Emmert

Quote:

> I am having a hell of a time trying to get a Unicode character to appear in
> a text box/rich text box/label etc....  I have tried varying controls to see
> if any can support Unicode but I have not had any success.  All I want to do
> is show an arrow pointing up in a text box.  If you go into character map,
> using the font "Courier New" and select the subset "Arrows", and select the
> up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb
> apps text box, all you get is a question mark, which means the code is
> unknown.  The control has been set to the correct font but it doesn't
> work!!!!

> I have tried using the CHRW function but this also gave me the famous
> question mark.  The code for the up arrow is 8593.  The only way I was able
> to determine this was to use a program which can use Unicode - excel, and
> write a script to go through all codes until I found the code I wanted.

> In then replicated the chrw(8593) function in VB (which works fine in
> Excel), but this was to no avail.

> Does anyone have an solution to my delema?  Does VB5 controls support the
> new standard developed by Microsoft for extended characters?

> Regards,

> Grant

--
Dave & Sara Emmert

homepage: www.geocities.com/~demmert


Fri, 01 Sep 2000 03:00:00 GMT  
 Unicode doesn't seem to be supported in VB5 controls

Actually, VB5 handles Unicode extrememly well.
However, the controls in question are standard windows controls (maintained
by the OS and not VB).
Internally, these controls depend on C-style null-terminated ascii strings
(at least in win95).

-Rob


Quote:
>Yep,
>    VB 5 doesn't support Unicode (or at least under Windows95).  I ended up
>using extended characters and changing the codepages.  Also, there is no
easy
>way to change codepages in runtime.

>Dave Emmert


>> I am having a hell of a time trying to get a Unicode character to appear
in
>> a text box/rich text box/label etc....  I have tried varying controls to
see
>> if any can support Unicode but I have not had any success.  All I want to
do
>> is show an arrow pointing up in a text box.  If you go into character
map,
>> using the font "Courier New" and select the subset "Arrows", and select
the
>> up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb
>> apps text box, all you get is a question mark, which means the code is
>> unknown.  The control has been set to the correct font but it doesn't
>> work!!!!

>> I have tried using the CHRW function but this also gave me the famous
>> question mark.  The code for the up arrow is 8593.  The only way I was
able
>> to determine this was to use a program which can use Unicode - excel, and
>> write a script to go through all codes until I found the code I wanted.

>> In then replicated the chrw(8593) function in VB (which works fine in
>> Excel), but this was to no avail.

>> Does anyone have an solution to my delema?  Does VB5 controls support the
>> new standard developed by Microsoft for extended characters?

>> Regards,

>> Grant

>--
>Dave & Sara Emmert

>homepage: www.geocities.com/~demmert



Fri, 01 Sep 2000 03:00:00 GMT  
 Unicode doesn't seem to be supported in VB5 controls

Whoa, hold on there. VB5 *definitely* supports Unicode. In fact, VB5 is
nothing *but* Unicode internally. It's the Windows 95 TextBox control that
doesn't support Unicode. Just making sure you don't put the blame on the
wrong program :-)

--
Ben Baird, MVP
Microsoft SiteBuilder Network Level 2
Visual Basic Thunder, v. 2.0
http://www.{*filter*}highway.com/~psy/
Common Controls Replacement Project, Official Member
http://www.*-*-*.com/


Quote:
>Yep,
>    VB 5 doesn't support Unicode (or at least under Windows95).  I ended up
>using extended characters and changing the codepages.  Also, there is no
easy
>way to change codepages in runtime.

>Dave Emmert


>> I am having a hell of a time trying to get a Unicode character to appear
in
>> a text box/rich text box/label etc....  I have tried varying controls to
see
>> if any can support Unicode but I have not had any success.  All I want to
do
>> is show an arrow pointing up in a text box.  If you go into character
map,
>> using the font "Courier New" and select the subset "Arrows", and select
the
>> up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb
>> apps text box, all you get is a question mark, which means the code is
>> unknown.  The control has been set to the correct font but it doesn't
>> work!!!!

>> I have tried using the CHRW function but this also gave me the famous
>> question mark.  The code for the up arrow is 8593.  The only way I was
able
>> to determine this was to use a program which can use Unicode - excel, and
>> write a script to go through all codes until I found the code I wanted.

>> In then replicated the chrw(8593) function in VB (which works fine in
>> Excel), but this was to no avail.

>> Does anyone have an solution to my delema?  Does VB5 controls support the
>> new standard developed by Microsoft for extended characters?



Fri, 01 Sep 2000 03:00:00 GMT  
 Unicode doesn't seem to be supported in VB5 controls

Well... i am working on a urdu program development in VB...after working
hard ... it can be done.
but not alone in VB5.0, they are right it doesnt support Unicode.. thought
i saw an implimentation of it in a Book by Danial AppleMan. u might be able
to doit with UniSubClass.ocx .... a shareware OCX i just saw it a few days
back on bsoftware.com .... try it it will help..
and also have a look at the book "VB Programmers Guide to the Windows API"
by Danial AppleMan.

best wishes,

Faisal Naveed Asif


Quote:
>I am having a hell of a time trying to get a Unicode character to appear
in
>a text box/rich text box/label etc....  I have tried varying controls to
see
>if any can support Unicode but I have not had any success.  All I want to
do
>is show an arrow pointing up in a text box.  If you go into character
map,
>using the font "Courier New" and select the subset "Arrows", and select
the
>up Arrow (Unicode 2191) and do a copy, and then a paste into a running vb
>apps text box, all you get is a question mark, which means the code is
>unknown.  The control has been set to the correct font but it doesn't
>work!!!!

>I have tried using the CHRW function but this also gave me the famous
>question mark.  The code for the up arrow is 8593.  The only way I was
able
>to determine this was to use a program which can use Unicode - excel, and
>write a script to go through all codes until I found the code I wanted.

>In then replicated the chrw(8593) function in VB (which works fine in
>Excel), but this was to no avail.

>Does anyone have an solution to my delema?  Does VB5 controls support the
>new standard developed by Microsoft for extended characters?

>Regards,

>Grant



Mon, 04 Sep 2000 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. class doesn't support automation or doesn't support expected interface

2. DTPicker doesn't support UNICODE...

3. DTPicker doesn't support unicode..

4. winsock control problem - session doesn't seem to close - errors 40006, 10048

5. WebBrowser Control PostData parameter doesn't seem to work

6. VB5 Err: 438 Obj doesn't support property or method

7. Class doesn't support Automation or does not support expected interface (Error 430)

8. HitTest doesn't seem to work as expected

9. FormField.EntryMacro doesn't seem to work

10. dropdown on the fly, doesn't seem to do an AutoPostBack

11. AddHandler doesn't seem to work

12. AppActivate doesn't seem to work with SendKeys

 

 
Powered by phpBB® Forum Software