AMT Help Files

DLL

A DLL Global Routine is a separate object that can be called by other objects from any application. The Global Routine becomes a separate DLL executable once it is generated, which can be used by any other AMT applications and Windows programs. In contrast with other Global Routines, this means that functions of the DLL Global Routine are available to use in other programming languages, such as Visual Basic and Delphi. It is also possible to use external data files.

Parameters are defined the same way in DLL Global Routines as in other Global Routine types. The DLL functionality has to be written inside the Main routine for external and remote use. It is possible to call other routines in local use (also see below). Every DLL Global Routine also contains several static routines that are only used internally.

 

Using A DLL Global Routine In AMT

A DLL Global Routine can be called in the same way a Performed Global Routine is called in LION. A DLL has its own variables and the only way to pass values to its routine is through passing parameters for these variables.

The following characteristics apply:

 

Using global routine DLLs in the same application (local)

The main routine of a global routine DLL can be called directly from a report or form in the same way as local routines by using a routine call.

Calling non-main routines in global routine DLLs is also possible when using both the DLL and report/form objects are in the same application. To call non-main routines it is necessary to use public routines in the DLL which can then be called in reports or forms by using a public routine call.

Example:

SA-100 := TEST ('AB', 'CDEF', 12, 45.67)
SA-200 := TEST.SECONDROU ('GH', 34)

 

Using global routine DLLs in a different AMT application (remote)

When using more than one application in the same repository of AMT, it is possible to use a global routine DLL of one application in reports/forms of another application.

The main routine of a global routine DLL can be called directly from a report or form in nearly the same way as local routines by using a routine call only preceded by the name of the application where the DLL is located. 

Syntax:

<application>.<Global_Routine_DLL> ([<Parameter list>])

Example:

SA-300 := CUSTOMER_MANAGEMENT.TEST ('AB', 'CDEF', 12, 45.67)

 

In order to ensure that the newest DLL is used after it was modified, the LION services need to be restarted.