Proteus versions |
Proteus is available in different versions: Ms-Dos, Win32, Service, ISAPI, Unix.
These are the main differences between the various versions:
Functions appearing only in the Ms-Dos/Win32/Service/ISAPI versions | DIRGET(drive) DRIVEGET() |
Functions appearing only in the Unix version |
DIRGET() LINK(file, link) |
Functions appearing only in the Windows version | DAO functions other Win32-specific functions |
Functions appearing only in the ISAPI version | ISAPI calls |
The functions SHORTNAME(pathname) and LONGNAME(pathname) are kept for compatibility only in the Unix version, where the value returned is always the value of the parameter specified.
The functions FATTRIB(pathname), CHMOD(pathname, flags), ISFILE(pathname), DIROPEN(pathname) and DIRLAST(h, field) have different flags, to take into account the differences between the operating systems.
It is important to note that:
There are no differences between the italian and english version, except for the error messages and the help.
If you want to write Proteus programs that can be run without modifications on different platforms, avoid using functions specific to a single version or adopt one of the following strategies:
; Save current directory to CurDir (under Dos/Windows, the current ; drive is also specified) !ifdef UNIX SET CurDir = FUNC("DIRGET") !else SET CurDir = FUNC("DIRGET", FUNC("DRIVEGET")) !endif
; Save current directory to CurDir (under Dos/Windows, the current ; drive is also specified) IF OS SET CurDir = FUNC("DIRGET", FUNC("DRIVEGET")) ELSE SET CurDir = FUNC("DIRGET") FI
If you need to access the interpreter version, use the predefined identifier VERSION.
Start of page | Next topic | Previous topic | Contents | Index |