- Jun
- 1,092
- 48
Rex, I'm posting this here in case you missed it in the longer discussion in another post.
When a string containing the escape character ^s is passed to the FORMAT function, the escape character is displayed as a space, but the length calculation thinks it is two characters long. That's probably because the LEN function does not expand the escape character.
Here's a demonstration.
A similar problem occurs with ^t.
When a string containing the escape character ^s is passed to the FORMAT function, the escape character is displayed as a space, but the length calculation thinks it is two characters long. That's probably because the LEN function does not expand the escape character.
Here's a demonstration.
Code:
C:]echo !%@format[010,one two]!
!000one two!
C:]echo !%@format[010,one^stwo]!
!00one two!
C:]echo %@len[^s]
2
A similar problem occurs with ^t.