473,395 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Khmer font problem with MsgBox in VBA

67 64KB
Hi,

When I output data from table to textbox in form, it will shows Khmer Unicode character correctly. But if I output it with MsgBox function, then it will shows as ?.

Could anybody tell me how to solve this because I would like to output in Khmer character?

Best regards,
Sophanna
Mar 26 '14 #1
6 2644
zmbd
5,501 Expert Mod 4TB
From my understanding:

You may be using an old version of the font, try finding the newest version you can online.

Even with the newer versions, for the message box you may still have to convert each Khmer character to the equivalent Hex values, then convert back to the system font using chrw() to build the string.

Best of Luck.
Mar 26 '14 #2
sophannaly
67 64KB
Hi zmbd,

My OS in win8.1 enterprise and I use its default font from OS. So it means that this font is still not new enough? In converting each khmer character to Hex values, do I need to add like &H in front of this hex values?

Best regards,
Sophanna
Mar 27 '14 #3
zmbd
5,501 Expert Mod 4TB
OK:
After some research thru the microsoft domain of accurate but obscure information, it appears that neither the VBE nor the standard MSGBOX() are unicode compliant - at least thru Windows7/Office2010.

From your information, this appears to hold true for Windows8.1

Then only workaround I have for you is to build a form that mimics a message box... insert a lable, a command button, and in ACC2010 you could use the graphics library to import a few symbols and use those as the graphics.

You will either have to use the "&H" or convert to the equivalent decimal value and then use the CHRW() to add/build your string.

Would like to be able to give you better news; however, it is what it is (^_^)

OK, GOTA RUN, The Gremlins just attacked another one of the instruments in the lab.
Mar 27 '14 #4
sophannaly
67 64KB
Hi zmbd,

Thanks for your reply. I have tried with Hex value by adding &H and then use chrw() in message box, but it still shows as ?. You said about mimic msgbox, if I have 10 msgbox with different meanings, what should I do? Should I make 10 different mimic msgbox?

Sophanna
Mar 28 '14 #5
zmbd
5,501 Expert Mod 4TB
As I noted in my last post, the MSGBOX() is TBMK not unicode compliant.

As for using a form: what I have for such "message boxes" is a single generic form that I pass openargs to, either with custom string for the message or using a standard set. The on open event then parses the opening arguments and sets the standard message or the custom message. Mind you, I do this mainly for "help" dialogs when the standard message box wont do the trick.

BOL
Mar 28 '14 #6
sophannaly
67 64KB
Hi zmbd,

Thanks you so much for your reply and it gave me idea on how to solve this problem.

Sophanna
Mar 28 '14 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: alon | last post by:
hello, i have a problem , i am a new user at access , i am using access 2000 , when i am making macro with msgbox the access stucks, i have check the same file with the macro on other computer and...
16
by: jhwagner | last post by:
I need to use double data entry with an MS Access database. I have read many arguments and reasons against this on this group but I have to do this. I have seen various tips on how this can be...
1
by: Jay at SCA | last post by:
I've been having the following issue with a windows service I've created in vb.net (.net fw 1.1): Basically, my service monitors a folder for the creation of any new files of a particular type...
1
by: j7o0s5 | last post by:
I want to install font with VB, so I can use that font in my application. Font file is *.ttf Thanx U
3
by: Simon Gare | last post by:
Hi, trying to hide zero values by changing the colour of the font, problem is it is still printing in a light grey colour? Code below but cant work out where it is going wrong. <td...
4
by: paraidy | last post by:
Hi, i'm using a richtextbox named r1, and i want to write in Bold and italic, i tryed this for bold and it work Dim f As New Font("Verdana", 30, FontStyle.Bold) r1.Font = f r1.Text = "Hello" ...
5
by: Christian Stapfer | last post by:
After switching from Python 2.3 to 2.4 (Enought), PIL throws an exception that did not occur formerly (under Python 2.3) when executing ImageFont.truetype(font, size) where font =...
4
by: James | last post by:
What does this mean? 'To specify more than the first argument, you must use the MsgBox function in an expression' I'd love to see an example. Thanks!
8
by: j2flk1234 | last post by:
Hi, I have a chart that I created in excel through VB. I want to try and change the font name from Times New Roman to Symbol. I tried recording the macro in excel but when I use the code in VB...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.