Jump to content
Sign in to follow this  

_GUICtrlRichEdit_StreamFromVar adds CR

Recommended Posts



If have the following code:

_GUICtrlRichEdit_StreamFromVar($hTab_RemarkEditBox, $Tab_Remark)
ConsoleWrite("1:" & $Tab_Remark & @CRLF)
$s = _GUICtrlRichEdit_StreamToVar($hTab_RemarkEditBox)
ConsoleWrite("2:" & $s & @CRLF)
De first "ConsoleWrite" gives back the following:
1:{rtf1ansiansicpg1252deff0deflang1043{fonttbl{f0fnilfcharset0 MS Shell Dlg;}}
{*generator Msftedit;}viewkind4uc1pardf0fs17par
De second "ConsoleWrite" gives back the following:
2:{rtf1ansiansicpg1252deff0deflang1043{fonttbl{f0fnilfcharset0 MS Shell Dlg;}}
{*generator Msftedit;}viewkind4uc1pardf0fs17par


Is there a reason why the extra "pardfs17par" is added in the second "ConsoleWrite" without making any changes in the EditBox and how can this be avoided?


Edited by Rodger

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.