O'Reilly logo

Absolute Beginner's Guide to Programming, Second Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Code

Often, programmers run their applications as they build them despite the fact that no code yet exists to make the application do real work. You should be able to run your application now (by pressing F5, the Visual Basic shortcut key for compiling and running the application) to make sure that the labels and text boxes all look correct. Check out the ToolTip text to ensure you've entered the text properly. Click the application window's Close button to stop the program so that you can add the final code.

The code is going to use loops to calculate interest. When the user clicks the middle command button, the calculation should take place, assuming the user has filled in all the necessary text boxes for the calculation. Therefore, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required