Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Switch between English and Chinese characters in msflexgrid and menu

Posted on 2007-10-05
2
Medium Priority
?
1,042 Views
Last Modified: 2013-12-26
I have a vb 6.0 app where I have to switch between English and Chinese.  I used msforms 2.0 where I could.  We are using Access 2000 with a table with one column the English captions and the other column the equivalent Chinese caption.  

The menu has an option to switch back and forth between English and Chinese.  All Chinese in my form displays properly when I have the Language for Non-Unicode Programs set to Chinese (PRC) under Advanced in the Regional and Language Options in the Control Panel, but  data I'm sending out and receiving on my serial port is screwed up.  

If I switch back to English for Language for Non-Unicode Programs, then my serial port communication is good.  But, when I select Chinese, then everything is then displayed in Chinese, except for the msflexgrid data and the menu bar.  I only get ??? for this data.  

Do I have to do some kind of a strconv to get this to work?  
0
Comment
Question by:pg6111
2 Comments
 
LVL 22

Accepted Solution

by:
danaseaman earned 2000 total points
ID: 20028167
Have you tried msflexgridH which is Unicode aware (msflexgrid is not)?

Also there are 3rd party Unicode Grids which are part of a suite of Unicode controls such as:
   UniSuite ($407, 46 controls) - http://cyberactivex.com/product008.htm
   UniToolBox2 ($716, 17 controls) - http://www.unitoolbox.com/
   
The above packages also include Unicode aware menus.

Changing to Unicode eliminates problems associated with non-Unicode OS settings and allows support of all languages installed on the underlying OS.

Also see http://cyberactivex.com/UnicodeTutorialVb.htm for information on using Unicode with Vb6.
0
 

Author Comment

by:pg6111
ID: 20060503
I can't spend any money on extra controls.  I'll replace the msflexgrid with the mshflexgrid.  Most of the items in the menu bar, when clicked on, load another form, and aren't drop-down menu type items, so I'll replace them with rich text boxes, which I think will display the Chinese properly, or the msforms 2.0 text boxes.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…
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…
Suggested Courses

810 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