Recent

Author Topic: Error coding an on click event for a button  (Read 3768 times)

dfspannie

  • New Member
  • *
  • Posts: 24
Error coding an on click event for a button
« on: November 18, 2010, 07:18:48 pm »
 >:( When trying to code an on click event for a new button on a form I get the following error :

E:\lazarus\lcl\lclclasses.pp(32,38) Error: unit not found: WSReferences

The program runs without a problem, showing the form and button. I just cannot code an on click event for the button.

Please assist.
Thanx.

ivan17

  • Full Member
  • ***
  • Posts: 173
Re: Error coding an on click event for a button
« Reply #1 on: November 18, 2010, 08:46:26 pm »
open the options dialog;
  • verify that laz dir is properly set everywhere; replace e:\lazarus with E:\lazarus
  • (environment>rescan fpc source directory;  retry method creation)
  • back in options dialog, verify the fpc version (#.#.#) in paths - you may have upgraded to 2.4.3 but paths may still contain 2.4.0
  • (environment>rescan fpc source directory;  restart;  retry method creation)
  • if problem persists, empty the e:\lazarus dir and reinstall


oh and next time, search the forum - there is no point in someone typing this every week...
« Last Edit: November 18, 2010, 08:48:28 pm by ivan17 »

 

TinyPortal © 2005-2018