Solved

Sharing Procedures

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
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…
This video discusses moving either the default database or any database to a new volume.
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

705 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

18 Experts available now in Live!

Get 1:1 Help Now