Sign in to follow this  
Followers 0
sambuddy

Appending to an edit box

3 posts in this topic

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

Share this post


Link to post
Share on other sites



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.

 

Share this post


Link to post
Share on other sites

Thanks ;)

That did it

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0