Solved

error: BC30451:Name 'IsNumeric' is not declared???

Posted on 2004-04-20
2
1,022 Views
Last Modified: 2012-05-04
Hi there,

im having a problem compliling a custom control to a dll using dos

here is the code

Imports System.ComponentModel
Imports System.Web.UI
Imports System.Web

Namespace TestYear
<DefaultProperty("Text"), ToolboxData("<{0}:PubYear runat=server></{0}:PubYear>")> Public Class PubYear
Inherits System.Web.UI.WebControls.TextBox
Implements INamingContainer

Private _text As String = "" 
Private _response As String

Public Sub New()
Text = " "
End Sub

Public Overrides Property Text() As String
Get
Return _text
End Get
Set(ByVal Value As String)
_text = Value
End Set
End Property

Public Property Response() As String
Get
Return _response
End Get
Set(ByVal Value As String)
_response = Value
End Set
End Property

Private Sub PubYear_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.TextChanged
If Text = "" Then
Response = "Enter the Contact Number"
Else
If Not IsNumeric(Text) Then
Response = "Enter a valid Contact Number"
Else
Response = "" 
End If
End If
End Sub

End Class
End Namespace



When i go to compile i get the folowing error message:

error: BC30451:Name 'IsNumeric' is not declared

Can any one understand why, i wouldnt think it would need to be as i was under the impression it is a built in function???

any help would be appreciated!  Thanks!
0
Comment
Question by:evismaniac
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 125 total points
ID: 10870695
If you look in the help file for IsNumeric, you will notice that it is in the Microsoft.VisualBasic namespace.  By default, Windows Forms applications include a reference to this namespace, but Web applications don't.

Bob
0
 

Author Comment

by:evismaniac
ID: 10870866
Thanks a lot, seems to work fine now.  pretty obvious im new at this huh! lol

:0)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Delivering innovative fully-managed cloud services for mission-critical applications requires expertise in multiple areas plus vision and commitment. Meet a few of the people behind the quality services of Concerto.

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now