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"
#2
Why wasn't the letter t deleted?

s.trim("stn")
out s
;now s is "Stri"


Forum Jump:


Users browsing this thread: 1 Guest(s)