Issue 18639 - Using the PUT/GET statements in binary mode does not get bytes from binary files.
Summary: Using the PUT/GET statements in binary mode does not get bytes from binary fi...
Status: ACCEPTED
Alias: None
Product: udk
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC3
Hardware: PC Windows 2000
: P3 Trivial (vote)
Target Milestone: AOO PleaseHelp
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords: oooqa
Depends on:
Blocks:
 
Reported: 2003-08-25 16:07 UTC by Unknown
Modified: 2017-05-20 11:29 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Unknown 2003-08-25 16:07: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.
Comment 1 kay.ramme 2003-08-27 08:21:48 UTC
Andreas, please have a look at this and target apropriately.
Comment 2 ab 2003-09-01 13:19:48 UTC
-> OOo 2.0
Comment 3 christof.pintaske 2004-06-17 16:48:30 UTC
cp: retargeted to Office-Later due to limited ressources
Comment 4 ab 2005-07-28 10:04:53 UTC
This task is related to #i17825 "basic: where is the Byte type?"
as the size of the written type decides about the byte count.
Comment 5 Marcus 2017-05-20 11:29:40 UTC
Reset assigne to the default "issues@openoffice.apache.org".