Das Problem mit Fulltrim ist inzwischen gefixt (falls es das von Thomas beschriebene ist):
Aus der KBASE:
LotusScript FullTrim Function Returns Unexpected Values
This document is based on the following :
About SPRs
SPR Number SPR Status SPR Fixed Release
RBEE5HZS9Z
RPOH5JGKXL
Problem
The LotusScript FullTrim Function does not function as designed in certain releases.
Under Notes Domino 6.0 and 6.0.1
The FullTrim function returns a value of unexpected length in cases where applied to a fixed length string that has not been assigned a value.
For example, in the following code, LenA will be set to 20, rather than the expected 0:
Dim S As String * 20
Dim A As String
Dim LenA as Integer
A = Fulltrim(s)
LenA = len(A)
The FullTrim function returns a value that internally contains multiple null characters that can have undesired results. It can cause unexpected termination of string formulas.
For example, for the following code:
Dim S As String * 20
Dim A As String
A = Fulltrim(s)
Print "Retuned value = '" + A + "'"
...the expected output would be:
Returned value ''
However, under Notes 6.0/6.0.1, the output actually is:
Returned value '
Under Notes 5.x:
When applying the LotusScript FullTrim function to the same variable multiple times, the subsequent calls add garbage characters.
For example, the following code:
Dim S As String * 20
Dim A As String
Dim B As String
Dim C As String
S="test"
A = Fulltrim(s)
B = Fulltrim(s)
C = Fulltrim(s)
...results in the following assignments:
A = "test"
B = "test ﳦӉ"
C = "test ﴎӉﴶӉ"
These issues have been reported to Lotus Quality Engineering.
The issues that appear with Notes 6.0 and 6.0.1 are resolved in Notes 6.0.1 CF1.
Excerpt from the Lotus Notes and Domino Release 6.0.1 CF1 fix list (available at
http://www.notes.net):
LotusScript
SPR# RPOH5JGKXL - Fulltrim will now always trim at first null encountered.
For the issues that appear under Notes 5.x, there is the following workaround and a fix is being researched:
Call the function only once per variable and refer to the variable assigned to the value. For instance, from the example above, you would use the variable A rather than making the additional calls setting the variables B and C.
Related Documents:
For additional issues that involve the FullTrim function, refer to the following documents:
Notes Domino 6.0/6.0.1:
Might Not Be Able to Attend Sametime Meetings in Environment Running Domino 6.0/6.0.1 and Sametime 3.x (Document #1105532)
Notes Domino 5.x, 6.0, 6.01:
Domino 5.0.12 or 6.0.1 Server Crashes when Execute FullTrim and/or When Running Sametime 3.x (Document #1105890)