Author Topic: Chapter 2 Issues  (Read 2769 times)

0 Members and 1 Guest are viewing this topic.

Offline ssuddell

  • Visitor
  • Join Date: Apr 2013
  • Posts: 2
  • Karma: 0
Chapter 2 Issues
« on: April 01, 2013, 10:39:45 AM »
I'm having trouble with the Math Quiz Programme (ref page 50, third edition).  When I enter the line in the Private Sub Form1_Load routine: CreateMathProblem() I get an error 'CreateMathProblem is not declared'!  What am I doing wrong or missing?  For info I'm using 2010 Express.  Thanks.



Offline twobitcoder

  • Administrator
  • -[ EPIC MEMBER ]-
  • *****
  • Join Date: Mar 2007
  • Posts: 4,931
  • Karma: 69
    • jharbour.com
  • Game: Adventure
  • Genre: RPG
  • Platform: Atari
  • Studio: Activision
Re: Chapter 2 Issues
« Reply #1 on: April 01, 2013, 10:51:31 AM »
You have to type in all of the source code for the whole game before running it.

Offline ssuddell

  • Visitor
  • Join Date: Apr 2013
  • Posts: 2
  • Karma: 0
Re: Chapter 2 Issues
« Reply #2 on: April 01, 2013, 11:03:01 AM »
Thanks.  Just spotted that myself.  Is this how subroutines are called?  I seem to recall years ago programming an Apple IIe it was 'Call (name of routine)'

Offline twobitcoder

  • Administrator
  • -[ EPIC MEMBER ]-
  • *****
  • Join Date: Mar 2007
  • Posts: 4,931
  • Karma: 69
    • jharbour.com
  • Game: Adventure
  • Genre: RPG
  • Platform: Atari
  • Studio: Activision
Re: Chapter 2 Issues
« Reply #3 on: April 01, 2013, 11:41:19 AM »
Oh, yes, and you can add a subroutine anywhere in the program.

Offline KurtIsley

  • Visitor
  • Join Date: Apr 2017
  • Posts: 1
  • Karma: 0
  • Game: Fallout 4
  • Genre: RPG
  • Platform: PC/Steam
  • Studio: Bethesda
Re: Chapter 2 Issues
« Reply #4 on: April 06, 2017, 06:59:58 PM »
Searched through nearly the entire forum looking for help on chapter 2.  My program couldn't "see" the CreateMathProblem() subroutine I had created.  It turns out I had misspelled it. 

The name of the subroutine didn't match how I spelled it in the other parts of my program.  :-(


Offline twobitcoder

  • Administrator
  • -[ EPIC MEMBER ]-
  • *****
  • Join Date: Mar 2007
  • Posts: 4,931
  • Karma: 69
    • jharbour.com
  • Game: Adventure
  • Genre: RPG
  • Platform: Atari
  • Studio: Activision
Re: Chapter 2 Issues
« Reply #5 on: April 21, 2017, 11:14:45 AM »
I don't seem to be getting notifications on some of these boards. I'll look into the problem.