Kbase P99886: characters 254 and 255 ignored in the begining of the file
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  16/10/2008 |
|
Status: Unverified
FACT(s) (Environment):
OpenEdge 10.0B
SYMPTOM(s):
characters 254 and 255 are ignored if they are on the first two position in the file
Using INPUT FROM ... BINARY NO-CONVERT to read from a file
CAUSE:
Bug# 20050111-006
FIX:
Upgrade to OpenEdge 10.1A or later.
Workaround:
Use COPY-LOB statement to read the fine into a MEMPTR data type variable:
procedure useCopyLob:
DEFINE VARIABLE cc AS CHARACTER NO-UNDO.
copy-lob from file 'abc' to object bb.
cc = GET-STRING(bb, 1, 12).
MESSAGE 'UseCopyLob: ' cc
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END PROCEDURE.