Custom Query (3927 matches)
Results (421 - 423 of 3927)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #1345 | Fixed | 3.3.1.7 Number("35.") returns 0 | ||
| Description |
As the summary says, Number() used on a string that contains a number but ends with a . returns 0. I was expecting it to return the numeric portion (i.e., in the summary Number("35.") I expect to return 35). Thanks |
|||
| #1352 | Fixed | StringSplit hard crash on binary data | ||
| Description |
Theese examples will show that script is crashing when using StringSplit on binary data: Crashing: $sFile = @Systemdir & "\oobe\images\hand1.gif" $hFile = FileOpen($sFile, 16) $aRead = StringSplit(FileRead($hFile), @CRLF) FileClose($hFile) MsgBox(64, 'Title', 'Crash!') ;Not Shown Not crashing: (FileRead is stored in variable) $sFile = @Systemdir & "\oobe\images\hand1.gif" $hFile = FileOpen($sFile, 16) $sRead = FileRead($hFile) $aRead = StringSplit($sRead, @CRLF) FileClose($hFile) MsgBox(64, 'Title', 'No Crash!') ;Not Shown And crashing again: $sFile = @Systemdir & "\oobe\images\hand1.gif" $hFile = FileOpen($sFile, 16) $sRead = FileRead($hFile) FileClose($hFile) $aRead = StringSplit($sRead, @CRLF) MsgBox(64, 'Title', 'No Crash!') ;Not Shown In the last example we can see that FileClose is called before StringSplit, for some reason that itself causing a hard crash. |
|||
| #1353 | Fixed | _FileWriteToLine() excessively strict on input text type | ||
| Description |
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. |
|||
