Modify

Opened 11 years ago

Closed 11 years ago

#2790 closed Bug (Fixed)

RichEdit_StreamToFile doesn't work

Reported by: qwert Owned by: Melba23
Milestone: 3.3.13.3 Component: AutoIt
Version: 3.3.12.0 Severity: None
Keywords: RTF Rich Text RichEdit Cc:

Description

After losing a day thinking I had a problem with my call, I examined the GUIRichEdit.au3 Include file and found a glaring error in the statement that tests the FileOpen result:

If $hFile - 1 Then Return SetError(102, 0, False)

It was always returning a 102, so I thought my filespec was faulty.

Not so. I changed my copy to be "$hFile = -1" and everything works. I looked back all the way to 3.3.8.1 and found this same problem, so I don't think the function has worked for a while.

Comparison file is attached. And, BTW, what's with the question marks in the $iWparam statements?

Change History (3)

Changed 11 years ago by qwert

RichEdit_StreamToFile reference copies

comment:1 Changed 11 years ago by Melba23

I will fix the typo.

The question marks are the ternary operator syntax introduced in 3.3.10.0 - do keep up! ;)

M23

comment:2 Changed 11 years ago by Melba23

  • Milestone set to 3.3.13.3
  • Owner set to Melba23
  • Resolution set to Fixed
  • Status changed from new to closed

Fixed by revision [10310] in version: 3.3.13.3

Guidelines for posting comments:

  • You cannot re-open a ticket but you may still leave a comment if you have additional information to add.
  • In-depth discussions should take place on the forum.

For more information see the full version of the ticket guidelines here.

Add Comment

Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.