Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Move the position of the multiline string
#3
oh, such a short code, 
It's a bit beyond imagination

Thank you so much

@Kevin

In front, I added two lines of string, How to move?

Macro Macro8
Code:
Copy      Help
_s=
;using namespace Spire.Doc;
;Add-Type -Path .\Spire.Doc.dll
;
;function Main([string[]]$args)
;{
;,function D($p1)
;,{
;,,'{D}'
;,}
;}
;
;function A($p1, $p2)
;{
;,'{A}'
;}
;
;function B($p1)
;{
;,'{B}'
;}
;
;function C()
;{
;,'{C}'
;}

;Todo:  Move the position of the multiline string (function Main)
str s ss
foreach s _s
,ss.addline(s -1)
,if(!s.len) break
_s.remove(0 ss.len)
ss- "[]"; ss.rtrim
_s.addline(ss -1)
out _s


Messages In This Thread
RE: Move the position of the multiline string - by Davider - 10-21-2022, 10:07 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)