Re: ascii length??
From: EricJ (ericReMoVe_at_ThiSbitconsult.be.RE)
Date: 02/23/04
- Next message: Sujith Jagini: "eventArgs( ) in customEventArgs( ) -Purpose?"
- Previous message: Algren: "ascii length??"
- In reply to: Algren: "ascii length??"
- Next in thread: Algren: "Re: ascii length??"
- Reply: Algren: "Re: ascii length??"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Feb 2004 09:08:44 +0100
just a thought haven't tried this
did you try to convert the string to a char array and take the length of
that (if the double-byte chars count as 2 ascii chars that might work)
hope it helps
eric
"Algren" <cookieless18@yahoo.com.NO_SPAM> wrote in message
news:e0J6zKe%23DHA.4084@tk2msftngp13.phx.gbl...
> hi all,
>
> I am wondering how I can get the ascii lengh of a string in VB.NET?
> Especially that the string consists of alpha numerics as well as chinese
> (double-byte) characters. Say I have a string "¢Ï¢Ð123" with the first 2
> characters being double-byte, using Len() on that string would return me
5.
> How can I get a value of 7 instead?? is there any VB.NET function that'd
> achieve that?
>
> Thanks a lot and your help's greatly appreciated.
>
>
- Next message: Sujith Jagini: "eventArgs( ) in customEventArgs( ) -Purpose?"
- Previous message: Algren: "ascii length??"
- In reply to: Algren: "ascii length??"
- Next in thread: Algren: "Re: ascii length??"
- Reply: Algren: "Re: ascii length??"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|