﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
1353	_FileWriteToLine() excessively strict on input text type	PsaltyDS	Jon	"Reported by user anixon:  [http://www.autoitscript.com/forum/index.php?showtopic=107078]

The input $sText parameter is currently tested with IsString() and fails with @error = 6 if False.  That is way too strict for the AutoIt environment where you can generally pass integers, floats, HWNDs, etc. to FilelWriteLine() and other text based functions.

Recommend change the test to this: 
{{{
Func _FileWriteToLine($sFile, $iLine, $sText, $fOverWrite = 0)
    If $iLine <= 0 Then Return SetError(4, 0, 0)
    If Not IsString($sText) Then 
        $sText = String($sText)
        If $sText = """" Then Return SetError(6, 0, 0)
    EndIf
    
    ; ...
    
EndFunc
}}}

Does conversion with String() but prevents a non-text value that returns """" from unexpectedly deleting the line if overwrite is True.

"	Bug	closed	3.3.3.3	AutoIt	3.3.2.0	None	Fixed		
