Domino 9 und frühere Versionen > Entwicklung

"zero-terminated" String in LS verketten

<< < (2/2)

Semeaphoros:
LS hängt gar nichts hinten an, LS hat intern eine Datenstruktur, in der die Länge des Strings verzeichnet ist. C eben nicht.

Glombi:
In diesem Zusammenhang sei auf die Hilfe verwiesen:

Dim varName As String [* num]

The optional num argument specifies that varName is a fixed-length string variable of num characters. A fixed-length string variable is initialized to a string of null characters (the character Chr(0)).

When you assign a string to a fixed-length string variable, LotusScript truncates a longer string to fit into the declared length. It pads a shorter string to the declared length with trailing spaces.

Fixed-length strings are often used in declaring data structures for use in file I/O or C access.

An implicitly declared String variable is always a variable-length string variable.

Andreas

Navigation

[0] Themen-Index

[*] Vorherige Sete

Zur normalen Ansicht wechseln