This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: the actual argument 3. abstraction/modularisation (helps handle complexity); re-use of code Q.F lblReward.Text = VbNullString btnGo.Visible = False btnStop.Visible = True Sub ByRef face As Color temp = generateRandom.Next(1,7) Sub btnGo.Visible = True btnStop.Visible = False Sub (no parameters) colourString = vbNullString Call build(colourString) lblReward.Text = reportOn(colourString) Sub colours = colours & colourOf(grpSlots.Controls(ctrl)) Function (ByVal sender As Control) As String Function Function (ByVal colours As String) As String Function Function (ByVal s As String) As Integer Function Q.G Dim base16, digit As String Dim i, p, base10 As Integer base16 = txtBase16.Text base10 = 0 p = base16.Length - 1 For i = 0 To base16.Length - 1 digit = base16.Substring(i, 1) base10 = base10 + DIGITS.IndexOf(digit) * 16 ^ p p = p - 1 Next lblBase10.Text = base10 Q.H 1. Private Sub subOne( ByRef x As Integer, ByRef y As Integer) Dim temp as Integer temp = x x = y y = temp End Sub 2. 3...
View Full Document
This note was uploaded on 01/12/2012 for the course CSE CSE1530 taught by Professor Lew during the Spring '09 term at York University.
- Spring '09