Manage Learn to apply best practices and optimize your operations.

How To Handle Differences Between Platforms

We strongly encourage you to write code in your Notes/Domino applications that
works regardless of the platform on which the application runs.
As you may know, different platforms have different file delimiters that should
be accounted for when you design an application.
Windows uses a backslash (\), Unix uses a forward slash (/), and the Macintosh
uses a colon (:).
Following is a technique and code that ensures that @ Functions and LotusScript
programs work on any platform:

Database designers should create a shared, computed for display field to embed
in forms that perform path processing.
Let's call this field Delim and use it to construct paths for lookups and such.
The code for the field is

Plat := @LowerCase(platform);
@If(Plat *= "aix":"sun sparc":" hp unix":"sco
opendesktop":"solarisx86":"solaris sparc":"unixware";"/";Plat *=

So that it can easily be reused, the equivalent LotusScript code should
probably be embedded in a shared utility library:

Function getDelim As String
Dim s As New notessession
Select Case s.platform
Case "UNIX" : getDelim = "/"
Case "Macintosh" : getDelim = ":"
Case Else :getDelim = "\"
End Select
End Function
This was last published in November 2000

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...