Tellblom Posted April 16, 2009 Posted April 16, 2009 As a newbie I try to update a listview as the program runs, but it does not update.... Here the code: GUICreate("Status Window", 400, 400) GUICtrlCreateLabel("Status",10,8) $listview =GUICtrlCreateListView("",10,30,380,250) GUISetState() Sleep(3000) GUICtrlCreateListViewItem ( "Reading inifile..... ", $listview) $file = FileOpen("my.ini", 0) ; Check if file opened for reading OK If $file = -1 Then GUICtrlCreateListViewItem ( "Can't find ini file. A default has been", $listview) GUICtrlCreateListViewItem ( "created. Please edit it and rerun application.", $listview) Exit EndIf FileClose($file) Sleep(10000) When I run this it never updates the listview. What have I missed? /Martin
Tellblom Posted April 16, 2009 Author Posted April 16, 2009 Problem solved I used the MemoWrite function in the helpfile then i GOT IT TO WORK
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now