Solved

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

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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Set value of dynamically created checkboxlist 2 42
VB.NET (2008) - Refactoring Question 2 24
VB.NET String Settings and Temp Folder Question 3 54
Code enhancement 4 21
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
Well, all of us have seen the multiple EXCEL.EXE's in task manager that won't die even if you call the .close, .dispose methods. Try this method to kill any excels in memory. You can copy the kill function to create a check function and replace the …
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 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