Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / General / September 2005

Tip: Looking for answers? Try searching our database.

vb.net error check

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
spen2 - 29 Sep 2005 17:54 GMT
I need help with my error check

how di I check for square root of negatives in vb.net @ the user input
and display an error message

anyone please

spen

--
spen2Message posted via  http://www.exforsys.com for all your training needs
Peter van der Goes - 30 Sep 2005 15:46 GMT
> I need help with my error check
>
[quoted text clipped - 4 lines]
>
> spen2

How is the user providing the input to the square root calculation? Entering
the number in a text box?
Assuming the above, simply convert the string in the text property to the
largest number type you allow using Convert.To*****, then trap the user in a
while loop, reprompting for valid input until a satisfactory number is
entered.
If this is not your scenario, please provide details.

Signature

Peter [MVP Visual Developer]
Jack of all trades, master of none.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.