You have to put the code below the INIT into the INIT of your form class. The code she gave you was for the entire class which includes Methods that need to be placed in the correct Events and Methods.
Get rid of anything that says Procedure and place the code below it into the correct areas.