ASP 101 - Active Server Pages 101 - Web04
The Place ASP Developers Go!

Please visit our partners


Windows Technology Windows Technology
15 Seconds
4GuysFromRolla.com
ASP 101
ASP Wire
VB Forums
VB Wire
WinDrivers.com
internet.commerce internet.commerce
Partners & Affiliates














ASP 101 is an
internet.com site
ASP 101 is an internet.com site
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash





ASP.NET version of "Variable Types"


There's lots of new and exciting stuff to do with variables in the new managed code world: Variants are now Objects, Integers have been shuffled a bit, Currency is gone, and a Char appeared! On top of all that, there's actually even bigger news. Now you can, and IMHO should, strongly type your variables. Forget Option Explicit... Option Strict all the way baby!

In the process of all this you also get to see some of the new exception handling in this sample. It's pretty simple, but if you stop and think about it... should error handling be simple so it doesn't cause more errors? ;)

I'm still trying to get used to this new world so if anyone has any ideas of how to clean up the code feel free to drop me a line. The standard "don't call me when it doesn't work" still applies. When we get to V1 stages I'll make sure it's a little more bulletproof, but for now all I can tell you is that it works over here. ;)

Here's a zip file of the code!

Play with the running version.


Back to the "Variable Types" sample


Samples

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback

Internet.com
The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers