This is part 3 of the Simple Calculator.
Simple Calculator Tutorials
Tutorial 4 - Data Types, Variables, Classic String Conversions and a Simple Calculation
Tutorial 5 - RadioButtons
Tutorial 6 - Data Parsing, Error Checking and User Friendly Interface
Data Parsing is more powerful than using VAL() STR(). The code for parsing is the datatype.parse
Examples
Integer.Parse
Single.Parse
Double.Parse
Error Handling
Try
(Code)
Catch
(Code)
End Try
When there is an error, like typing “A” when a integer is expected will cause an error. The error is caught and the code within Catch is run.
Code Download
VBT6.zip