Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Sharing Procedures

Posted on 1997-11-21
1
179 Views
Last Modified: 2010-04-04
Hi,
Is there a way to have a procedure written in unit1 and to use this in unit2? It is a procedure applying a user-defined filter on an SQL-statement. I wrote the procedure in the 'Edit_Filter' unit (unit2),but I want it to execute at startup (unit1)
Suggestions?
0
Comment
Question by:lizzzard
1 Comment
 
LVL 8

Accepted Solution

by:
ZifNab earned 50 total points
ID: 1351394
Hi lizzzard,
You can use that procedure if it's written in the public or published part of your unit. Put in this case the unitname (unit2) in uses list of unit1 and then from unit1 call Edit_Filter. If Edit_Filter is part of a form then call FormName.Edit procedure (Form1.Edit_Filter)
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Convert Jpg /PNG To GIF 5 149
Printing problem 2 101
Delphi Firemonkey Need Sample for Online Shopping Example. 2 166
How to save the image in the .cds File ClientDataSet? 1 22
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question