DBCS in dialog boxes

  • Thread starter Thread starter Jonn Horn
  • Start date Start date
J

Jonn Horn

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
 
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.
 
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
 
I believe VB.NET does support it but I don't use it so I'm not positive.
 
Back
Top