adxmother contains the names of the reference applications of the current application.

 

Class, type and dimension

Char [S]adxmother(255) (8)

 

Examples

# Initialization of adxmother
[S]adxmother(0) = [L]MACHREF+"@"+[L]APPLIREF
# opening of a table of the first reference application
Local File =[V]MACHINE+"@"+adxmother(0)+".COMMUNE" [COMM]

Description

adxmother is a character string type variable that contains the names of the reference applications of the current application, from the folder just above to the parent folder. Examples:

For a grand-child folder,  [S]adxmother(0)=child folder, [S]adxmother(1)=parent folder.
For a child folder,           
[S]adxmother(0)=parent folder, [S]adxmother(1)=parent folder.
For a parent folder,
        [S]adxmother(0)=parent folder, [S]adxmother(1)=parent folder.

A reference application contains a set of objects (processings, menus, masks, reports...) used by the current application when these objects cannot be found in the application itself.

The reference applications are usually placed on starting the application in the APL.ini file. If a reference application is not on the same machine as the current application, it will be mentioned in the form "server@application".

Warning! :
In read mode, [S]
adxmotheronly returns the name of the application. To know the name of the server, the adxmac function will be used.

The names of the reference applications can also be changed for each program. The impact of such a modification should be considered beforehand since this impact will be immediate.

When assigning adxmotherwith the name of the application, such an application must exist and be accessible.

 

Associated errors

Error

Description

ERAPIN (73)

Application does not exist

 

Associated keywords

NOMAP - ADXDIR - FILPATH - FILINFO - ADXMAC