­
A Visual Basic School Calculator — ICT & Computing in Education
  • Front Page
  • Search
    • Digital Education
    • Terry Freedman's Books Bulletin
  • RSS
    • Welcome
    • The "About" Page
    • Testimonials
    • CV/Resumé
    • My Writing
    • Published articles
  • Corrections Policy
Menu

ICT & Computing in Education

Articles on education technology and related topics
  • Front Page
  • Search
  • Newsletters
    • Digital Education
    • Terry Freedman's Books Bulletin
  • RSS
  • Info
    • Welcome
    • The "About" Page
    • Testimonials
    • CV/Resumé
    • My Writing
    • Published articles
  • Corrections Policy
A screenshot of a print-out of a screenshot

A screenshot of a print-out of a screenshot

A Visual Basic School Calculator

October 13, 2017

I came across a print-out of one of my first forays into programming with Visual Basic, circa 1994. I was already familiar with Basic, which I had taught for a number of years, and Visual Basic for Applications, which I employed to add some rocket fuel to Word and Excel. However, I thought it was time I learnt VB so I couldcreate stand-alone programs, and also teach it in school.

The screenshot above shows one of my first applications. It was a calculator which took account of value-added tax (VAT) semi-automatically, and held running totals. I used the Running Totals to help me keep an eye on whether I was going over budget. I also added a 'Lock' feature, to prevent myself or someone else accidentally resetting it.

It worked really well. The only thing is, I am now rather embarrassed by the code. Although it was efficient, and worked, it includes lines line Sub Command8_Click(). The next program I wrote, and subsequent ones, named items properly (eg cmdVAT for the Command button to add VAT).

Still, not bad for a first attempt methinks!

In Computing Tags Visual Basic, calculator
← What's in the next issue of Digital Education?Technology-Authorised Madness →
Recent book reviews
Review: The Game Changers: How Playing Games Changed the World and Can Change You Too
Review: The Game Changers: How Playing Games Changed the World and Can Change You Too

Despite the relative paucity of immediately obvious National Curriculum links, teachers will find several of sections of this book to be highly engaging.

Read More →
Review: The Dictators: 64 Dictators, 64 Authors, 64 Warnings from History
Review: The Dictators: 64 Dictators, 64 Authors, 64 Warnings from History

In some respects one could view this book as a single warning repeated 64 times.

Read More →
Review: The Bookshop, The Draper, The Candlestick Maker: A History of the High Street 
Review: The Bookshop, The Draper, The Candlestick Maker: A History of the High Street 

Taking readers from the Middle Ages to (more or less) the present day, Gray charts how the places where we do our shopping and what we buy have changed over the centuries.

Read More →
Review: Extraordinary Learning For All
Review: Extraordinary Learning For All

As a source of potential ideas and inspiration, the book could be very useful indeed.

Read More →
Review: Bad Education: Why Our Universities Are Broken and How We Can Fix Them
Review: Bad Education: Why Our Universities Are Broken and How We Can Fix Them

One has the impression that the main role of the university these days is to maximise profit, while that of the majority of teaching staff is to ensure the ‘correct’ views are passed on to students. All the while, students’ main concern seems to be to seek protection from anything that might make them feel unsafe.

Read More →
Review: Next Practices - An Executive Guide for Education Decision Makers
Review: Next Practices - An Executive Guide for Education Decision Makers

Is a 2014 book on managing the computing provision in a school still worth buying?

Read More →
Still relevant (sadly): How to lie with statistics, by Darrell Huff
Still relevant (sadly): How to lie with statistics, by Darrell Huff

Although this book is over 60 years old, it is remarkably apposite for our times -- and especially in the fields of educational research and assessing pupils' understanding and progress.

Read More →
Quick looks: Bad Education: Why Our Universities Are Broken and How We Can Fix Them
Quick looks: Bad Education: Why Our Universities Are Broken and How We Can Fix Them

It was a great source of pride to me, getting hundreds of students through their A levels and encouraging them to go to university. But for some time I have asked myself a question: would I recommend this route now?

Read More →
Review: The Bright Side: Why Optimists Have the Power to Change the World
Review: The Bright Side: Why Optimists Have the Power to Change the World

At first glance, you might take this to be one of those books full of affirmations and anecdotes designed to lift your mood.

Read More →
Review: Small Habits Create Big Change: Strategies to Avoid Burnout and Thrive in Your Education Career
Review: Small Habits Create Big Change: Strategies to Avoid Burnout and Thrive in Your Education Career

My review of this for Teach Secondary magazine has just come out. Here is the published version, followed by the copy I submitted, which is slightly longer because it has a little more detail.

Read More →
Dig+Ed+Banner.jpg

Contact us

Privacy

Cookies

Terms and conditions

This website is powered by Squarespace

(c) Terry Freedman All Rights Reserved