By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,998 Members | 2,921 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,998 IT Pros & Developers. It's quick & easy.

StrConv and expected error

P: n/a
What is wrong with this code,

bStr() As Byte

bStr = StrConv("yeas",vbUnicode)

I can only assume I am missing a tools->reference,
but for string conversion?
Nov 12 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Well, on one level there is nothing wrong with it -- if the code does not
run then that suggests that you may have a reference problem.

On another level, this code makes no sense. You are taking a Unicode string
(all strings in VB are Unicode BSTRs), converting it as if it were a CP_ACP
string to something that can only be called "double-secret Unicode", and
then assigning that meaningless string to a byte array.

References -- andy reference problem can make all code fail, even known VBA
refs.

The other problem is one that cannot be resolved until you explain what you
are trying to do.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.
"bigbinc" <bi*****@hotmail.com> wrote in message
news:d1**************************@posting.google.c om...
What is wrong with this code,

bStr() As Byte

bStr = StrConv("yeas",vbUnicode)

I can only assume I am missing a tools->reference,
but for string conversion?

Nov 12 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.