all groups > dotnet academic > december 2003 >
You're in the

dotnet academic

group:

Simple Question....



Re: Simple Question.... Peter van der Goes
12/19/2003 6:48:53 AM
dotnet academic:
[quoted text, click to view]
Check out the Convert class in the help. Capture the textbox.text property
in a string, then use Convert.(name of method that suits your needs) to
attempt a conversion inside a try - catch block (look at
try...catch---finally statements in the help). The exception you want to
catch is InvalidCastException.

--
Peter - [MVP - .NET Academic]

Simple Question.... Marcus Vinícius
12/19/2003 9:31:06 AM
Hi,

I have a simple question about nuemric functions..

in vb6 I used isnumeric function to validate a textbox value for example...

My question

How Can I validate a value if it is numeric or not in vb.net?


PS: I want to know how I can do it without Visual Basic "IsNumeric"
function....

Thanks

--


-------------------------------------------------
Marcus Vinícius M. Montezano

Programador

Digiexpress
-------------------------------------------------

Re: Simple Question.... Marcus Vinícius
12/19/2003 11:00:56 AM
Thanks....


"Peter van der Goes" <p_vandergoes@mars.cox.net> escreveu na mensagem
news:OJ8sx5ixDHA.1484@TK2MSFTNGP09.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button