Writing a char to file (LotusScript Put#) with a hexvalue of FF

Hi everyone!

Big trouble is: I have a code:

Dim tmpc As String*1

tmpc = Chr(&HFF)

Put #hDBF.file, 33 + 32 * i + j, tmpc

If the hex value of ‘tmpc’ is lower or equal than 7F (dec. 128), everything is ok.

But - if tmpc is greater that 7F - it fails. For example tmpc=FF - Put writes the value of 4F to the file…

What’s wrong?

Subject: Use NotesStream instead.