Author Topic: LM:Unformat %%U & %%B  (Read 288 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 365
LM:Unformat %%U & %%B
« on: October 03, 2017, 02:15:39 am »
Hi all,

Lee Mac has an excellent function LM:Unformat and I use it lot of times. However, it does not remove %%U and %%B from the string. Please guide me how to remove it and all other types of formatting.

John Kaul (Se7en)

  • Administrator
  • Needs a day job
  • Posts: 8812
Re: LM:Unformat %%U & %%B
« Reply #1 on: October 03, 2017, 09:07:53 am »
In this case I'd be tempted to use that super-duper one mailmaverick wrote?
“Common sense is not so common.” ~Voltaire

--> Donate to TheSwamp.org <--

roy_043

  • Swamp Rat
  • Posts: 1480
  • BricsCAD 16
Re: LM:Unformat %%U & %%B
« Reply #2 on: October 03, 2017, 09:47:53 am »
I do not recognise %%B and AFAIK %%U only works in text entities not mtext entities. %%C, %%D and %%P can be used in mtexts though.

mailmaverick

  • Bull Frog
  • Posts: 365
Re: LM:Unformat %%U & %%B
« Reply #3 on: October 03, 2017, 08:25:36 pm »
I have certain text entities and mtext entities for which I want to remove all formatting and get only the unformatted string.

mailmaverick

  • Bull Frog
  • Posts: 365
Re: LM:Unformat %%U & %%B
« Reply #4 on: October 05, 2017, 12:24:21 pm »
In this case I'd be tempted to use that super-duper one mailmaverick wrote?
Dear John, in case only %%B and %%U are to be replaced, I can do it through vl-string-subst but there may be many other formattings which I am not aware of and I want to remove all of them. Please guide me.

kdub

  • SuperMod
  • Swamp Rat
  • Posts: 966
  • class keyThumper<T>:ILazy<T>
called Kerry in my other life

Sometimes the question is more important than the answer.

ribarm

  • Water Moccasin
  • Posts: 1686
  • Marko Ribar, architect
Re: LM:Unformat %%U & %%B
« Reply #6 on: October 06, 2017, 08:39:38 am »
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

roy_043

  • Swamp Rat
  • Posts: 1480
  • BricsCAD 16