| View previous topic :: View next topic |
| Author |
Message |
Tuncay
Joined: 07 Nov 2006 Posts: 383 Location: Berlin
|
Posted: Mon Dec 10, 2007 9:52 pm Post subject: Default values for stringtrimleft and -right |
|
|
For case of simplecity, I am for some sort of default values for built-in commands of StringTrimLeft and StringTrimRight.For example, the last parameter/argument could default to '1' character. The second param could get also a default value. It could default to first output var name.
For example:
| Code: | ; wish: default values for stringtrimleft and -right
s := "help me"
StringTrimLeft, s ; Trim just 1 char on left side.
MsgBox %s% ; Output "elp me". |
|
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5390 Location: /b/
|
Posted: Mon Dec 10, 2007 9:53 pm Post subject: |
|
|
I have wanted this for a long time. In fact I think I even PMed Chris for this when I was a newb years ago. You have my support! _________________
 |
|
| Back to top |
|
 |
engunneer
Joined: 30 Aug 2005 Posts: 6847 Location: Pacific Northwest, US
|
Posted: Tue Dec 11, 2007 12:24 am Post subject: |
|
|
I think this is an easy change that won't break existing scripts. I also support it. _________________
Unless otherwise noted, all code is untested.
Common Answers: 1.(Loops, Viruses, etc.) 2. Search 3.RTFM |
|
| Back to top |
|
 |
|