Home > Back-end >  In Delphi package (bag) how to obtain the parameters of the main program?
In Delphi package (bag) how to obtain the parameters of the main program?

Time:09-17

I am now in use Delphi to develop a program that will use package, but I want to let the package from access to some parameters in the main program, a great god gives directions, or have a demo and related information introduced can be,

CodePudding user response:

I don't know what you said is what parameters,
Design a public methods in the package, the main program calls it, not hand in the parameters?

CodePudding user response:

The main program global variables in the var a: string; Parameters (variables), such as for the package design a method, you can teach me please, or demo,

CodePudding user response:

There are two ways, the first to use the database, the data in a table, let the two programs share,
Method 2: package: procedure getpara (var paraa: string) let paraa and variable communication,



CodePudding user response:

Directly after in the process of writing, PROCEDURE [dbo] [test] @ TV001 char (4), @ V002 char AS (11)
  • Related