Construct | Usage in OS/400 |
ActivateApp | Not supported. Generates a run-time error. |
ChDir | A run-time error is generated if LotusScript cannot interpret the argument to ChDir; for example, if a drive letter is specified in the argument. |
ChDrive | Generates a run-time error unless the drive argument is an empty string (""), signifying the default drive. |
CreateObject | Not supported. Generates a run-time error. |
CurDir, CurDir$ | Generates a run-time error unless the drive argument is the empty string (""), signifying the default drive. |
CurDrive, CurDrive$ | Returns the empty string (""), because there are no drives on an iSeries server. |
Date, Date$ | Changing the date on OS/400 through LotusScript is not supported. Generates a run-time error. |
Declare | The Pascal calling convention for external function calls is not supported. All external function calls must use the CDECL calling convention. In addition, you must use the _System linkage keyword when passing arguments other than pointers. |
Dir, Dir$ | Ignores the attributeMask argument and behaves as if all files have the attribute Normal. Returns all files for "*.*", not just those containing ".". Returns those files ending with a period for "*.", not every file without an extension. |
FileLen, Len, LenB, LenBP, LOF | Strings containing line terminators are smaller than on DOS/Windows platforms. The line terminator is one character (line feed), not two. Therefore, the return value of these functions will be smaller for strings on OS/400 than on Windows. |
GetFileAttr | Generates a run-time error if a drive letter is included in the argument. Does not return the following attributes: ATTR_HIDDEN, ATTR_ARCHIVE, ATTR_VOLUME, ATTR_SYSTEM. |
GetObject | Not supported. Generates a run-time error. |
Input #, Input, Input$, InputB, InputB$, Line Input, Print, Write # | Compiled scripts using these constructs may be platform specific, because file data is stored in a platform-specific manner. OS/400 character set, byte order, line terminator, and numeric precision specifics may affect the portability of scripts using these functions. |
IsObject, IsUnknown | See "Other differences." |
Open, Lock, Unlock | Explicit or implicit file locking is not supported. This implies the following:
- LotusScript for OS/400 allows the user to do operations (Such as copy or open) on a file that is already opened for reading. Thus, the Name statement works differently with OS/400.
- The Open statement can specify only Shared as its lock status. Lock Read, Lock Write, and Lock Read Write will cause a run-time error.
- The Lock and Unlock statements will cause a run-time error.
|
SendKeys | Not supported. Generates a run-time error. |
SetFileAttr | Ignores the attributes ATTR_HIDDEN, ATTR_ARCHIVE, and ATTR_VOLUME. |
Shell | Window styles are ignored. |
Time, Time$ | Changing the time on OS/400 through LotusScript is not supported. Generates a run-time error. |