PC Review


Reply
Thread Tools Rate Thread

DBCS in dialog boxes

 
 
Jonn Horn
Guest
Posts: n/a
 
      1st Dec 2005
Hello
I'm trying to use DBCS values from the Contact record to populate a
dialog box presented to the user. The DBCS characters are displayed
correctly in the Contact form. But when presented in the dialog box,
all I get are "??" displayed where the characters should be. When we
inspect the Outlook objects from VB, we see the same values "??" as in
the dialog box.

Are there special methods we need to use to obtain and present strings
of DBCS?

Thanks
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      1st Dec 2005
You'd need a control that can handle an array of Bytes and convert your text
into that. VB and VBA don't handle DCBS properly as strings or for the
built-in controls. Interestingly enough VBScript does, a VBS MsgBox function
will take DCBS and display it correctly.

Even with a control that can handle DCBS you'd still need to convert to a
Byte array or you'd have to use a language such as C++ that can handle DCBS
correctly.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jonn Horn" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello
> I'm trying to use DBCS values from the Contact record to populate a dialog
> box presented to the user. The DBCS characters are displayed correctly in
> the Contact form. But when presented in the dialog box, all I get are
> "??" displayed where the characters should be. When we inspect the
> Outlook objects from VB, we see the same values "??" as in the dialog box.
>
> Are there special methods we need to use to obtain and present strings of
> DBCS?
>
> Thanks


 
Reply With Quote
 
Jonn Horn
Guest
Posts: n/a
 
      1st Dec 2005
Hello
I'm just wondering if this is true for all versions of VB? We are
currently using VB6 for our customization. Would VB .net support DBCS?

Thanks


Ken Slovak - [MVP - Outlook] wrote:
> You'd need a control that can handle an array of Bytes and convert your
> text into that. VB and VBA don't handle DCBS properly as strings or for
> the built-in controls. Interestingly enough VBScript does, a VBS MsgBox
> function will take DCBS and display it correctly.
>
> Even with a control that can handle DCBS you'd still need to convert to
> a Byte array or you'd have to use a language such as C++ that can handle
> DCBS correctly.
>

 
Reply With Quote
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      2nd Dec 2005
I believe VB.NET does support it but I don't use it so I'm not positive.

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"Jonn Horn" <(E-Mail Removed)> wrote in message
news:eN8Zh$(E-Mail Removed)...
> Hello
> I'm just wondering if this is true for all versions of VB? We are
> currently using VB6 for our customization. Would VB .net support DBCS?
>
> Thanks


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pass Dialog Box entry to new Query Dialog Boxes rbeach Microsoft Access Reports 5 23rd Jan 2009 03:52 PM
How to read DBCS from a cell in VBA Joe Haberl Microsoft Excel Programming 0 28th Jun 2006 05:45 PM
Open some dialog boxes and the mouse cursor moves to one of the dialog buttons **Developer** Microsoft VB .NET 8 21st Aug 2005 07:36 PM
Had a power outage and lost DBCS George Hester Microsoft Windows 2000 0 24th Jun 2005 04:59 AM
Re: SBCS to DBCS Michael \(michka\) Kaplan [MS] Microsoft C# .NET 0 27th Nov 2004 12:34 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:02 AM.