Custom Query
Results (58 - 60 of 3893)
| Ticket | Resolution | Summary | Owner | Reporter |
|---|---|---|---|---|
| #294 | Fixed | Fix for _FileFreadToArray() | Gary | GEOSoft |
| Description |
Fixes the situation where the file contains no @LF NOTE: This also includes my version with a default value for $aArray, Reason= It can be called without pre-declaring the array. You just need $MyArray = _FileReadToArray("My\File\Path.ext") My feelings won't be hurt if that's removed. Func _FileReadToArray($sFilePath, $aArray = "")
Local $hFile
$hFile = FileOpen($sFilePath, 0)
If $hFile = -1 Then ;; unable to open the file
SetError(1)
Return 0
EndIf
$aFile = FileRead($hFile, FileGetSize($sFilePath));; Read the file and remove trailing white spaces
$aFile = StringStripWS($aFile, 2)
FileClose($hFile)
If StringInStr($aFile, @LF) Then
$aArray = StringSplit( StringStripCR($aFile), @LF)
ElseIf StringInStr($aFile, @CR) Then ;; @LF does not exist so split on the @CR
$aArray = StringSplit( $aFile, @CR)
Else ;; unable to split the file
SetError(1)
Return 0
EndIf
Return $aArray
EndFunc ;<==> _FileReadToArray()
|
|||
| #299 | Fixed | _GUICtrlTab_SetItemText text display problem | Gary | benners |
| Description |
With the latest release the _GUICtrlTab_SetItemText function no longer works correctly. The text that is displayed is cut short when the text length is longer than 2 characters. The cropping is also different depending on the # of characters above 2. The example in the help file can be used to highlight the bug, the text returned is New T when it should be New Text. |
|||
| #303 | Fixed | Clock.au3 sample needs fixing | Gary | Jon |
| Description |
C:\Program Files\AutoIt3\Examples\GUI\Advanced\Clock.au3 is currently broken. |
|||
