Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_beginners thread: Compiler not recognising Len Function


Message #1 by "Phil Steel" <philips@t...> on Wed, 25 Jul 2001 15:51:44
Hi all,



I'm trying to use the Len Function to detect the length of a string 

(obviously) and the compiler throws this error:



error BC30451: The name 'Len' is not declared.



Here's the code - 



If (Len(strSize)) >= 7 Then

Message #2 by "Al LeMay" <alemay@d...> on Wed, 25 Jul 2001 08:18:23 -0700
Phil



The Len command is in the Microsoft.VisualBasic namespace.  By adding

this you should be able to access the function.



Al LeMay

Virtuoso

Quality Assurance Manager

alemay@d...

tele:  (xxx) xxx-xxxx

cell:  (xxx) xxx-xxxx



http://www.virtuoso.com/







-----Original Message-----

From: Phil Steel [mailto:philips@t...]

Sent: Wednesday, July 25, 2001 8:52 AM

To: aspx_beginners

Subject: [aspx_beginners] Compiler not recognising Len Function





Hi all,



I'm trying to use the Len Function to detect the length of a string

(obviously) and the compiler throws this error:



error BC30451: The name 'Len' is not declared.



Here's the code -



If (Len(strSize)) >=3D 7 Then




  Return to Index