|
 |
aspx thread: Argh! What happened to Len() in VB.NET?
Message #1 by "Oliver, Wells" <WOliver@l...> on Wed, 10 Jul 2002 14:22:40 -0700
|
|
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C22857.EBC4BC40
Content-Type: text/plain;
charset="iso-8859-1"
Did it go away? Does it belong to some obscure namespace? help! :)
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #2 by "Garland Frye" <gfrye@s...> on Wed, 10 Jul 2002 16:49:47 -0500
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0009_01C22831.CCFD5C20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Argh! What happened to Len() in VB.NET?If you aren't developing in
VS.NET then you have to import the VisualBasic namespace in order to use
it's runtime. Key in the line:
Imports Microsoft.VisualBasic
Alternatively, you can call MyString.Length to get a count of
characters, if you want to get the length of a numeric type, you can
call MyInt.ToString().Length
(where MyInt, and MyString represent a variable of type string, and
integer respectively)
Getting the length of a numeric type is discouraged, because it causes a
boxing operation to convert the value type integer, into a reference
type string.
Thanks,
Garland
"Oliver, Wells" <WOliver@l...> wrote in message
news:192368@a...
Did it go away? Does it belong to some obscure namespace? help! :)
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
Message #3 by "David Adames" <david@p...> on Wed, 10 Jul 2002 18:21:09 -0400
|
|
This is a multi-part message in MIME format.
------=_NextPart_000_0077_01C2283E.90AAC7F0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Argh! What happened to Len() in VB.NET?Try .Length
e.g. strMyString.Length
-----Original Message-----
From: Oliver, Wells [mailto:WOliver@l...]
Sent: Wednesday, July 10, 2002 5:23 PM
To: ASP+
Subject: [aspx] Argh! What happened to Len() in VB.NET?
Did it go away? Does it belong to some obscure namespace? help! :)
Wells Oliver
Web Application Programmer
Leviton Voice & Data
xxx-xxx-xxxx
http://www.levitonvoicedata.com
--- Change your mail options at http://p2p.wrox.com/manager.asp or to
unsubscribe send a blank email to
|
|
 |