Recent

Author Topic: How can I add uses automatically?  (Read 3172 times)

loaded

  • Hero Member
  • *****
  • Posts: 878
How can I add uses automatically?
« on: August 18, 2021, 02:07:26 pm »
Hi All,
In the example code below, I know the relevant definitions and can run the code by manually typing in the uses section.
Code: Pascal  [Select][+][-]
  1. var
  2.   ExchangeStream: IStream; // add manuel uses types
  3.   FPngstream: TOleStream;  //add manuel uses comobj

Code: Pascal  [Select][+][-]
  1. URLOpenBlockingStream
If I didn't know that the definition related to is registered in the urlmon, is there a way I can automatically add the relevant uses ?
The more memory computers have, the less memory people seem to use. 😅

balazsszekely

  • Guest
Re: How can I add uses automatically?
« Reply #1 on: August 18, 2021, 02:26:09 pm »
Hi loaded,

Did you try Cody: https://wiki.freepascal.org/Cody? Especially the "Unit/Identifier Dictionary": https://wiki.freepascal.org/Cody#Unit_.2F_Identifier_Dictionary.

loaded

  • Hero Member
  • *****
  • Posts: 878
Re: How can I add uses automatically?
« Reply #2 on: August 18, 2021, 07:11:59 pm »
Thank you very much GetMem for your reply.
Firstly I was expecting a shorter path like F1 or F3.
I didn't know about Cody, good to know. We're going to do some experimenting now.
The more memory computers have, the less memory people seem to use. 😅

 

TinyPortal © 2005-2018