Apache OpenOffice (AOO) Bugzilla – Issue 18639
Using the PUT/GET statements in binary mode does not get bytes from binary files.
Last modified: 2017-05-20 11:29:40 UTC
Using the PUT and GET statements does not return byte values from a binary file. Sub Main '****************************************************************** DIM CountFileName As String DIM FValue as Variant ' File Name to Open for conversion into spreadsheet CountFileName = "C:\DATA\LOG-117A" If NOT FileExists(CountFileName) Then Msgbox(CountFileName & " does NOT exists", 64, "Warning") exit sub End If iNum = FreeFile OPEN CountFileName for binary ACCESS READ as #iNum GET #iNum,,FValue ' With FValue declared as Variant This line fails ' If FVAlue is declared as Integer this line works but ' Returns two bytes from the file.
Andreas, please have a look at this and target apropriately.
-> OOo 2.0
cp: retargeted to Office-Later due to limited ressources
This task is related to #i17825 "basic: where is the Byte type?" as the size of the written type decides about the byte count.
Reset assigne to the default "issues@openoffice.apache.org".