Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
How to pass information from one form to another by ActionList
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Bugtracker
IRC channel
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] Comparing cells ...
by
Gizmo
[
Today
at 12:23:50 am]
Stop service by the daemo...
by
andersonscinfo
[
Today
at 12:21:36 am]
Alternative C++ IDE with ...
by
pascal111
[
Today
at 12:18:20 am]
RichEdit with toolbar inc...
by
jamie
[April 21, 2021, 11:53:43 pm]
Find hex string in hex ed...
by
JCDes
[April 21, 2021, 11:48:01 pm]
Use one random music file
by
d3crypti0n
[April 21, 2021, 11:43:14 pm]
Rename from Object Inspec...
by
hacknperl
[April 21, 2021, 11:39:17 pm]
Change Size with ComboBox
by
jamie
[April 21, 2021, 11:27:13 pm]
Lazarus 2.0.12 on Linux L...
by
dseligo
[April 21, 2021, 11:08:34 pm]
[SOLVED] Passing a variab...
by
Gustavo 'Gus' Carreno
[April 21, 2021, 10:57:45 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to pass information from one form to another by ActionList (Read 299 times)
slivitin
New member
Posts: 5
How to pass information from one form to another by ActionList
«
on:
February 28, 2021, 05:36:43 pm »
Hi.
I have:
1. main program unit
2. data module unit
3. custom form unit
In the custom form I have a list with "vendors"(I get vendors from the database). I want to create one procedure for whole program for add/delete/change vendor (because maybe I will call this procedure from different places of my program) and I want to pass VendorName from custom form to this procedure. How it is possible? With global variables or I can redefine some code in the Action?
Logged
jamie
Hero Member
Posts: 4373
Re: How to pass information from one form to another by ActionList
«
Reply #1 on:
February 28, 2021, 10:02:04 pm »
use a unit with the code in it and include that unit in the USES list of all other units that needs access to it.
all public identifiers go in the INTERFACE section
Logged
The only true wisdom is knowing you know nothing
egsuh
Hero Member
Posts: 689
Re: How to pass information from one form to another by ActionList
«
Reply #2 on:
March 01, 2021, 04:59:44 am »
I haven't seen your whole application, but the first thought is that you define the procedures in the data module, and add the datamodule in the uses clause of other units.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
How to pass information from one form to another by ActionList
TinyPortal
© 2005-2018