Hi everyone,
I can not show info from file *.txt in GUICtrlCreateList.
#include <GUIConstantsEx.au3>
#include <WindowsConstants.au3>
GUICreate("AutoIT",400 ,350 , -1, -1)
$list_view = GUICtrlCreateList("",20, 40, 100, 160)
$list_srv = "D:\data\list_srv1.txt"
$read = FileRead($list_srv)
$split = StringSplit($read,@CRLF,1)
For $i = 1 to $split[0]
GUICtrlSetData($list_view,$split[$i])
Next
GUISetState(@SW_SHOW)
While 1
$msg = GUIGetMsg()
If $msg = $GUI_EVENT_CLOSE Then ExitLoop
Wend
Can you help me how to fix it ?
Thanks for your instruction ! list_srv1.txt