473,799 Members | 2,929 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

StrConv(UData, vbFromUnicode) Problem

I am using VS .Net 2003 and trying to convert a unicode data (vb .net
default string type?) to single byte using

BData = StrConv(UData, vbFromUnicode)

it is a method mentioned in
http://support.microsoft.com/default...b;EN-US;174923 but the
problem is vbFromUnicode is not supported in my version of vs .net, anyone
knows what is the equivalent function in vs .net 2003?


Nov 20 '05 #1
1 23921
"sbcglobal" <pc*****@sbcglo bal.net> schrieb
I am using VS .Net 2003 and trying to convert a unicode data (vb
.net default string type?) to single byte using

BData = StrConv(UData, vbFromUnicode)

it is a method mentioned in
http://support.microsoft.com/default...b;EN-US;174923 but
the problem is vbFromUnicode is not supported in my version of vs
.net, anyone knows what is the equivalent function in vs .net
2003?


Which destination encoding do you need? For Unicode use

dim b as byte()
b = System.Text.Enc oding.Unicode.G etBytes(UData)

To get other encoding, use other members of System.Text.Enc oding.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
11288
by: Leader | last post by:
HI, i got a problem while using StrConv function in sql server. My requirement is:- suppose in a name field i have "jhon smith" Now i want to run a sql which will give me the result like "Jhon Smith"--which means upper case first. Now i am running a query like below which is giving me "Jhon smith" but i want "Jhon Smith".
6
2505
by: Alain. | last post by:
Dear all, Acess 2000. Here is may problem : i want to extract the path of my DB without thr name of the DB file, something like D:\MyFolder\ I use this code but the Instrrev line is not accepted : error (5) and (I try to translate) : incorect argument or or procedure call. What is wrong ? (References ?) Private Sub Form_Open(Cancel As Integer) Dim Bigpath As String
1
539
by: bigbinc | last post by:
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?
0
1925
by: Mark Johnson | last post by:
Seems the mousewheel isn't controlled in earlier versions like A97 or 2000. So you can accidentally use the mousewheel to scroll to the next record in an unbound form. And that can cause Access to hang-up, with an unbound form. I had this little popup box that was an alternative to editing text in a memo field. And every now and then I'd forget about the mousewheel problem and just habitually scrool as if editing in U-edit or something....
0
1246
by: Norton | last post by:
I am using StrConv to convert simplified chinese encoding string to a traditional chinese coding string strResult = StrConv(strSimplifiedChinese, VbStrConv.TraditionalChinese) It works on one computer but it always return ??? in the other computer all windows have installed the chinese fonts Could anyone knows what's missing for the computer configuration?
23
4111
by: Antony Clements | last post by:
i am using the following code private var1 as Long private var2 as Long private var3 as Long ReDim bytearray(0 To 3) ReDim bytearray2(0 To 3) For a = 0 To 3
3
3795
by: MLH | last post by:
?StrConv("SomeAddr@SomeDomain.net", vbFromUnicode) ??????????? When I use StrConv in the manner shown above, a bunch of question marks is all I ever see returned. Why might that be? Of what real use is StrConv? Can you give me a useful case example?
1
2156
by: MLH | last post by:
Tom van Stiphout pointed out a syntaxn error that I had made using StrConv on Mar 28. I was using vbFromUnicode instead of vbUnicode. So, am OK on that now. Can someone help me understand what is being done in the StrConv operation that turns this 19-character string into a 38-char string: ?StrConv("MyAddr@MyDomain.com", vbUnicode) M y A d d r @ M y D o m a i n . c o m
2
2309
by: =?Utf-8?B?TWFyYyBBbGxhcmQ=?= | last post by:
Hello, I have posted this message in the normal newsgroup instead of posting it in the managed ones. I have a project in VB6 (GDI+) that will read a WMF File (created by my customer) and then resize it and insert it into a picture I have a problem with in in NET2005 (but it is OK in VB6).
0
9686
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
10222
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9068
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7564
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6805
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5463
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5585
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4139
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2938
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.