Jump to content
Macro Express Forums

Replace Cr/lf Instead Of Remove


cyberchief
 Share

Recommended Posts

Hello Chief!

 

Create a CR/LF string:

// Create a CR/LF string (ASCII 13 + ASCII 10)
Variable Set %T10% to ASCII Char of 010
Variable Set %T13% to ASCII Char of 013
Replace "%T13%" with "%T13%%T10%" in %T13%

<REM2:Create a CR/LF string (ASCII 13 + ASCII 10)><ASCIIC:10:1:010><ASCIIC:13:1:013><TMVAR2:21:13:00:000:000:%T13%%T13%%T10%>

 

Now you can use it to replace CR/LF's with asterisks in your variable.

Replace "%T13%" with "*" in %T1%

<TMVAR2:21:01:01:000:000:%T13%*>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...