sambuddy Posted December 6, 2006 Share Posted December 6, 2006 Hello All, I having some trouble writing to an edit box. when I use the following code GUICtrlSetData($txt1,"File exist = " & $0 & @CRLF) I get the correct data in the edit box but when i add some more text e.g. GUICtrlSetData($txt1,"File doesn't exist" & @CRLF) the line above gets erased and this text gets inserted. I thought that putting @CRLF at the end would make it go to the next line, but it doesn't seem to be What I want is for the original data to stay there and the new data to be added to it Any suggestions? My final aim is to read a text file and put it into the exit control e.g. $txt1 is an edit control $txt=FileRead("hinfo.txt") GUICtrlSetData($txt1,$txt) Thanks Link to comment Share on other sites More sharing options...
GaryFrost Posted December 6, 2006 Share Posted December 6, 2006 Hello All, I having some trouble writing to an edit box. when I use the following code GUICtrlSetData($txt1,"File exist = " & $0 & @CRLF) I get the correct data in the edit box but when i add some more text e.g. GUICtrlSetData($txt1,"File doesn't exist" & @CRLF) the line above gets erased and this text gets inserted. I thought that putting @CRLF at the end would make it go to the next line, but it doesn't seem to be What I want is for the original data to stay there and the new data to be added to it Any suggestions? My final aim is to read a text file and put it into the exit control e.g. $txt1 is an edit control $txt=FileRead("hinfo.txt") GUICtrlSetData($txt1,$txt) Thanks GUICtrlSetData($txt1,GuiCtrlRead($txt1) & "File doesn't exist" & @CRLF) SciTE for AutoItDirections for Submitting Standard UDFs Don't argue with an idiot; people watching may not be able to tell the difference. Link to comment Share on other sites More sharing options...
sambuddy Posted December 6, 2006 Author Share Posted December 6, 2006 Thanks That did it Link to comment Share on other sites More sharing options...
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