The Generic Interface is the counterpart to the C-API of EPLAN 21. This interface contains all functions of the API in a form that enables their application in languages like Visual Basic or VB Script. These functions differ from the functions of the C-API as follows:
The epl prefix is missing in front of the function name. The initial letter of the functions is written in small (which is however ignored by most languages).
Results are only returned as return value since script languages do not permit a return per parameter.
Callbacks for commands and notifications are realized via COM interfaces and not via C-functions.
Access to the last error occurred (Last Error) is provided by the LastError property of the long type.
.Apart from these items all functions of the generic interface act in exactly the same way as their counterparts in the C-API do. In fact the COM interface is only a thin wrapper around the EPLAN 21 API.
The functions for initializing and terminating a transaction are integrated into the Transaction Interface. This interface contains the following methods:
Methods | corresponds |
---|---|
Start() | eplStartTransaction |
commit | eplCommitTransaction |
end | eplEndTransaction |