Jump to content
Xtreme .Net Talk

Recommended Posts

  • Leaders
Posted

i currently reference the msn chat control library to convert from ansii text like say "â�¢Ã�ynamicâ�²Â§â�¢Ã�row§erâ�¢" to "�Ðynamic′§�ßrow§er�" readable format, to do this requires Msn.ConvertedString , however i was wondering if it is possible to convert from ansii / utf8 to unicode without having to use a large ocx file like the msn chat control?

say like sName = unicode(sName)

  • *Experts*
Posted

You can access all the old VB6 String functions (Left, Right, Split,

and Mid which is now called Substring, etc.) by typing any string

variable followed by a . and the name, just like accessing any method

from a class. You can also do this with any normal string,

"like this".Left(4)

 

sValue = Data.Left(3)

 

For your text conversion, look in the System.Text namespace for

various encoders and decoders.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

  • Leaders
Posted

i'm tearin me hair out :( i've tried....

Dim s as string

If s.Substring(1, 1) = "." Then Me.BeGold(s)

 

( ".") being the first character of the nickname

also tried

If s.Substring(1, s) = "." Then Me.BeGold(s)

and If s.Substring(1, 1) is "." Then Me.BeGold(s)

nothing seems to be working tho :S

  • *Experts*
Posted

Sorry for confusing you with .Left, I could've sworn it was there... :)

 

And the reason it isn't working is because now all indexes are

zero-based. That means that the first character's index is 0, unlike

Mid$ where the first character has the index 1.

"Being grown up isn't half as fun as growing up

These are the best days of our lives"

-The Ataris, In This Diary

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...