The idea is that I want to save user names to a text file.. then be able to recall or 'Load' users saved to that text file in a list..
I need the list to be displayed within the GUICtrlCreateList function..
Here is the code I'm having trouble with, it displays a list of arrays using _arraydisplay BUT I dont want it displayed in columns and rows...
#include
#include
#include
#include
#include
#include
#include
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 277, 254, 192, 124)
$write = GUICtrlCreateInput("", 16, 16, 161, 21)
$enter = GUICtrlCreateButton("Enter", 192, 8, 73, 25)
$names = GUICtrlCreateList("", 24, 56, 209, 175)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
Global $userspath = "C:\Documents and Settings\matthews\My Documents\Reece's Scripts\Users.txt"
$readusers = fileread($userspath)
Local $array
$read = _Filereadtoarray($userspath, $array)
guictrlsetdata($names, $read)
_arraydisplay($array)
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $enter
$readwrite = guictrlread($write)
guictrlsetdata($names, $readwrite)
guictrlsetdata($write, "")
filewrite($userspath, $readwrite & @CRLF)
EndSwitch
WEnd