waardd Posted July 12, 2012 Share Posted July 12, 2012 The title is a little wierd but here is my problem. I have a plink output wich displays a big chunck of output. If i put it in a messagebox the formatting is good. All lines are under each other and its good readable. When i put the output in a editfield it displays as one long string. My question is How can i control the edit field so it displays as lines as well like the messagebox? Link to comment Share on other sites More sharing options...
John Posted July 12, 2012 Share Posted July 12, 2012 I assume your "edit field" is a GUICtrlCreateEdit. If you want to break lines then just use a @CRLF. $string = "Line 1" & @CRLF & "Line 2" Link to comment Share on other sites More sharing options...
waardd Posted July 12, 2012 Author Share Posted July 12, 2012 If i put in the data myself that would be great but.... The StdOut of plink.exe puts in the data. It goes like this: Global $ret = _MyRun("C:uldplink.exe -v -pw "&$connectww&" "&$connectuser&"@"&$connectserver&$command&$tocheck) GUICtrlSetData($output, $ret) My Editfield shows it as one string. But if i msgbox it it shows it formatted. Entry: blablablaUsername: xxxxxxxxUser ID: 29022Primary group: blablablaCompany ID: lkdjfsldkfjUser info: pa, Jones (John), 465100Email address: something@dot.comCreated: Wed Oct 5 07:23:34 CEST 2011Password expire: Sun Aug 5 05:35:40 CEST 2012User revoke date: (none)Exp. warned: 0Failed logins: 0Authgroup: Sysgroup: vallues But if i msgbox it it shows it formatted MsgBox(0,"test",$ret) --------------------------- blablabla --------------------------- Entry: blablabla Username: xxxxxxxx User ID: 29022 Primary group: blablabla Company ID: lkdjfsldkfj User info: pa, Jones (John), 465100 Email address: something@dot.com Created: Wed Oct 5 07:23:34 CEST 2011 Password expire: Sun Aug 5 05:35:40 CEST 2012 User revoke date: (none) Exp. warned: 0 Failed logins: 0 Authgroup: Sysgroup: vallues --------------------------- OK --------------------------- 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