Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
about trim
#1
The results(s.trim("stn")) of M1 and M2 are different. Why?

Macro M1
 
Code:
Copy      Help
str s = "strin"
s.trim("stn")
out s
;now s is "ri"

Macro M2
Code:
Copy      Help
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"


Messages In This Thread
about trim - by Davider - 02-07-2023, 03:18 AM
RE: about trim - by Davider - 02-07-2023, 11:13 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)