Recent

Author Topic: [Solved] Uses clause item for Lcl > ExtCtrls  (Read 444 times)

nikel

  • Full Member
  • ***
  • Posts: 210
[Solved] Uses clause item for Lcl > ExtCtrls
« on: August 10, 2024, 05:32:37 am »
Hello, I'm trying to make a command line program which detects idle time and shutdown device using Pascal. I want to use TIdleTimer but it's giving me error:

Quote
detectidle.lpr(31,16) Error: Identifier not found "TIdleTimer"

How can I fix this error? How can I add TIdleTimer programmatically?
« Last Edit: August 10, 2024, 07:23:52 am by nikel »

tooldeveloper

  • Newbie
  • Posts: 4
Re: Uses clause item for Lcl > ExtCtrls
« Reply #1 on: August 10, 2024, 06:09:27 am »
Does your project options include the LCL as a requirement?   To my knowledge, a new command line project does not automatically include the LCL as a requirement.

nikel

  • Full Member
  • ***
  • Posts: 210
Re: Uses clause item for Lcl > ExtCtrls
« Reply #2 on: August 10, 2024, 06:12:39 am »
Thanks for the reply. I couldn't find any setting to include LCL.

tooldeveloper

  • Newbie
  • Posts: 4
Re: Uses clause item for Lcl > ExtCtrls
« Reply #3 on: August 10, 2024, 06:38:05 am »
Please try the following:

Open the "Project" menu and select "Project Inspector ..."
Click on the "Add" button
Select "New Requirement"
Type in "LCL"
Select the "LCL" item in the listbox
Press the OK button

Then try compiling your project.

nikel

  • Full Member
  • ***
  • Posts: 210
Re: Uses clause item for Lcl > ExtCtrls
« Reply #4 on: August 10, 2024, 07:23:16 am »
It works now. Thanks a lot.

 

TinyPortal © 2005-2018