Let's code !
Our Foot-To-Meter Convertor still doesn't do anything useful. In this lesson, we'll add some real code to the event handlers.
btnFootToMeters's OnClick Event HandlerIn lesson 3 we've put some temporary code in the event handler of btnFootToMeter. But what should this event handler really do?
We'll keep temporary values and texts in the variables Foot, Meter
and ResultString. Variables have to be declared:
This is done BEFORE the reserved word begin in the routine. For the moment, don't worry about all the different types of variables. Later on, we shall come back to this in detail.
Now, let's code!