Macro Toolworks Products Discussion Forums :: Macros & Solutions
Welcome Guest   
 Subject :Macro to remove character from selected string.. 20-12-2011 10:00:59 
hans.list@gmail.com
Joined: 14-04-2011 07:18:48
Posts: 6
Location: Holland
Hi all,

Is there someone here who has a macro to remove a specific character (e.g. the '-') from a selected string?

Überflüss-ige Bindestrich-e

Thanks for sharing it!

Hans
IP Logged
 Subject :Re:Macro to remove character from selected string.. 17-02-2012 06:55:24 
hugblue@hotmail.com
Joined: 13-10-2010 01:09:07
Posts: 100
Location: sweden
Hi Hans.

Maybe this can help you.

<#> initializes text1
<varset>("text1=this --- is -- a - test","type line of text :")<#> replace - with nothing in text1. then save the result back to text1.
<var_oper>(text1,"%text1%",STR_REPLACE,"-","", "0")<#> print result to screen
<msg>(-100,-100,"%text1%","result",1,0,0,1)
IP Logged
Page # 


Powered by ccBoard


Login and share your experience - send messages to forums and add comments to samples, commands and other resources.



Account is free of charge, easy to setup.