Solved

Sharing Procedures

Posted on 1997-11-21
1
178 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

785 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