ADXMAC |
adxmac is used to know the names of the servers accommodating the reference applications of the current application. It can also be used to know the network address of the client workstation.
adxmac(expr_n)
|
Element |
Description |
Restrictions |
|
expr_n |
numerical expression providing the application number |
expr_n included between -2 and 8. |
# The counters of the current application are about to be updated.# from the reference application (same value for adxtct )
Local File = adxmac(1)+"@"+[S]nomap(1)+"."+[S]adxtct [REF]
Local File = [S]nomap(0)+"."+[S]adxtct [COM]
adxmac is a function returning the name of the server accommodating the application whose number has been given as parameter.
The value returned by adxmac is of Char type. If this number is "0", it designates the current application, if it is "1", it designates the first reference application, "2", the second reference application, etc. The values returned by adxmac are dependent on the values of the variable [S]adxmother.
If the client-server mode is not on, and the application is on the current machine, the returned value is the empty string "".
adxmac(-1) designates the machine where the Adonix engine is running.
adxmac(-2) designates the network address of the client workstation.
|
Error |
Description |
|
ERMODE (10) |
exp_num is not of numerical type. |
|
ERDOM (50) |
expr_n is smaller than 0 or bigger than 8 |
|
Copyright © Sage 1999 - 2007 |