Solved

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

Posted on 2004-04-20
2
1,018 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
Microsoft Reports are based on a report definition, which is an XML file that describes data and layout for the report, with a different extension. You can create a client-side report definition language (*.rdlc) file with Visual Studio, and build g…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 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

25 Experts available now in Live!

Get 1:1 Help Now