Custom Query

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (82 - 84 of 3866)

Ticket Resolution Summary Owner Reporter
#149 No Bug FileRead does not return EOF but does return @Error =0, an undocumented state oblique
Description
;FileRead(filehandle or "filename" [, count])
;Failure(s): 
;EOF is not set when using 'filename' (default is to read entire file which I would expect to set EOF
;function returns @error = 0 which is an undocumented value
;########
;Code below will demonstrate the problem, and can be used to test that the problem has been fixed.
;any text file can be used to demonstrate the problem
;########
;prove FileOpen is good, and EOF is found
$file = FileOpen("anytext.txt", 0)
If $file = -1 Then
	MsgBox(0, "Error", "Unable to open file.")
	Exit
EndIf
While 1
	$chars = FileRead($file, 10000)
	If @error = -1 Then ExitLoop
	MsgBox(0, "Char read and EOF set:", $chars)
Wend
FileClose($file)

;show error
$fileR = FileRead("anytext.txt")
MsgBox(0,"Entire file is read", "Chars:"&@CRLF&$fileR)
Select
	Case @error = -1
		MsgBox(0,"","pass; SPECIAL: @Error="&@error&" -1 = EOF is reached")
	Case @error = 1
		MsgBox(0,"","FAIL; SPECIAL: @Error="&@error&" 1 = file not opened in read mode or other error, NOT POSSIBLE IN THIS TEST")
	Case @error = 2
		MsgBox(0,"", "FAIL; SPECIAL: @Error="&@error&" 2 = count not defined for file open in raw read mode, NOT POSSIBLE IN THIS TEST")
	Case Else
		MsgBox(0,"","FAIL; SPECIAL: @Error="&@error&" UNEXPECTED - @Error is set to 0 not -1 when FileRead is executed (default is entire file)")
EndSelect

Exit}}}
#150 No Bug Can´t open hidden file MrBestliving
Description

I tried to open a hidden file with FileOpen funcion in "2" mode(Write mode (erase previous contents)), but it was failure. I was try it on version 3.1.1.0 and 3.2.10.0 but the result was in both version same.

#151 No Bug Constant redeclaration bug anonymous
Description

Works from the GO command in scite but not when you run it from a double click

Note: See TracQuery for help on using queries.