Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple lines of text are split and assigned to multiple variables
#4
@Kevin

How to
Let s1 always save the text above the separator line
Let s2 always save the text below the separator line

In Macro4, it is the opposite, 
I need the results
s1=
s2=b

Macro Macro3
Code:
Copy      Help
out
_s=
;a
;---------------
;b

str s1 s2
tok _s &s1 2 "---------------"
mes F"s1 = {s1.trim}" 
mes F"s2 = {s2.trim}"

Macro Macro4
Code:
Copy      Help
out
_s=
;---------------
;b

str s1 s2
tok _s &s1 2 "---------------"
mes F"s1 = {s1.trim}" 
mes F"s2 = {s2.trim}"


Messages In This Thread
RE: Multiple lines of text are split and assigned to multiple variables - by Davider - 08-30-2022, 10:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)