Posts: 1,032
Threads: 246
Joined: Jul 2022
02-07-2023, 03:18 AM
(This post was last modified: 02-07-2023, 03:19 AM by Davider.)
The results(
s.trim("stn")) of M1 and M2 are different. Why?
Macro
M1
str s = "strin"
s.trim("stn")
out s
;now s is "ri"
Macro
M2
str s = " String "
s.trim
out s
;now s is "string"
s.trim('g')
out s
;now s is "strin"
s.trim("stn")
out s
;now s is "Stri"
Posts: 1,032
Threads: 246
Joined: Jul 2022
02-07-2023, 11:13 AM
(This post was last modified: 02-07-2023, 11:14 AM by Davider.)
Why wasn't the letter t deleted?
s.trim("stn")
out s
;now s is "Stri"