|
|
|
|
|
|
|
Averages
This next example will calculate the average mark of three students who sit an exam. They will pass or fail according to the quite brutal principle that you pass if you score better than the average mark...
Here's our design for the form:
The specification is as follows:
|
|
Form |
Name
Caption
Height
Left
Top
Width |
frmAverage
Average
4000
2000
2000
6000
|
|
Command Button |
Name
Caption
Height
Left
Top
Width |
cmdExit
E&xit
495
840
2040
1215
|
|
Command Button |
Name
Caption
Height
Left
Top
Width |
cmdCalculate
&Calculate
495
840
840
1215
|
|
Image |
Name
Height
Left
Stretch
Top
Width |
imgA
495
3840
True
2640
495
|
|
Image |
Name
Height
Left
Stretch
Top
Width |
imgB
495
4200
True
2640
495
|
|
Image |
Name
Height
Left
Stretch
Top
Width |
imgC
495
4920
True
2640
495
|
|
Label |
Name
Border Style
Height
Left
Top
Width |
lblAverage
Fixed Single
255
1440
1560
1935
|
|
Text Box |
Name
Alignment
Height
Left
MultiLine
Top
Width |
txtA
Center
375
3480
True
240
495
|
|
Text Box |
Name
Alignment
Height
Left
MultiLine
Top
Width |
txtB
Center
375
4200
True
240
495
|
|
Text Box |
Name
Alignment
Height
Left
MultiLine
Top
Width |
txtC
Center
375
4920
True
240
495
|
|
Vertical Scroll Bar |
Name
Height
Large Change
Left
Max
Top
Width |
vsbA
1695
10
3600
100
840
255
|
|
Vertical Scroll Bar |
Name
Height
Large Change
Left
Max
Top
Width |
vsbB
1695
10
4320
100
840
255
|
|
Vertical Scroll Bar |
Name
Height
Large Change
Left
Max
Top
Width |
vsbC
1695
10
5040
100
840
255
|
|
- build the form and save your work
Continued...
|
|
© ePublish Scotland 1999
|