Solved

Sharing Procedures

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This Micro Tutorial will give you a basic overview how to record your screen with Microsoft Expression Encoder. This program is still free and open for the public to download. This will be demonstrated using Microsoft Expression Encoder 4.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

867 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now