[Libreoffice-ux-advise] [Bug 134516] Invalid string handling with random files
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Jul 27 15:37:00 UTC 2020
https://bugs.documentfoundation.org/show_bug.cgi?id=134516
--- Comment #9 from Alain🐍Romedenne <alain.romedenne at libreoffice.org> ---
Not a bug:
- If the variable being written is a variable-length string, Put writes a
2-byte descriptor containing the string length and then the variable. The
record length specified by the Len clause in the Open statement must be at
least 2 bytes greater than the actual length of the string.
as per
https://docs.microsoft.com/fr-fr/office/vba/language/reference/user-interface-help/put-statement
- The Put statement behaves differently, depending on the type of file you're
using.
Random files: The first two bytes written indicate the length of the string.
Then the Put statement writes the number of characters specified by that
length. If variableName is not initialized, the Put statement writes a string
of length 0.
as per
https://help.hcltechsw.com/dom_designer/9.0.1/appdev/LSAZ_PUT_STATEMENT.html
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Libreoffice-ux-advise
mailing list