Lazycat Posted January 14, 2005 Share Posted January 14, 2005 I just tried to add slash into control string of StringFormat and encountered next problem: $str = StringFormat("%s\\%s\\%s", @MDAY, @MON, @YEAR) MsgBox (0, "title",$str) Theoretically, output must be 14\01\2005, but actually it 14012005. Why escaping of "\" don't work? BTW possibly need a bit more documentation for this func, because it lacks info about using escapes like \n, \t etc. Koda homepage ([s]Outdated Koda homepage[/s]) (Bug Tracker)My Autoit script page ([s]Outdated mirror[/s]) Link to comment Share on other sites More sharing options...
Developers Jos Posted January 14, 2005 Developers Share Posted January 14, 2005 I just tried to add slash into control string of StringFormat and encountered next problem: $str = StringFormat("%s\\%s\\%s", @MDAY, @MON, @YEAR) MsgBox (0, "title",$str)Theoretically, output must be 14\01\2005, but actually it 14012005. Why escaping of "\" don't work?BTW possibly need a bit more documentation for this func, because it lacks info about using escapes like \n, \t etc.<{POST_SNAPBACK}>This is a Bug in the StringFormat function...... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now