Modify

Opened 12 years ago

Closed 12 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?

Attachments (1)

StreamToFile Problem.au3 (6.0 KB ) - added by qwert 12 years ago.
RichEdit_StreamToFile reference copies

Download all attachments as: .zip

Change History (3)

by qwert, 12 years ago

Attachment: StreamToFile Problem.au3 added

RichEdit_StreamToFile reference copies

comment:1 by Melba23, 12 years ago

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 by Melba23, 12 years ago

Milestone: 3.3.13.3
Owner: set to Melba23
Resolution: Fixed
Status: newclosed

Fixed by revision [10310] in version: 3.3.13.3

Modify Ticket

Action
as closed The owner will remain Melba23.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.