AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Default values for stringtrimleft and -right

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Tuncay



Joined: 07 Nov 2006
Posts: 383
Location: Berlin

PostPosted: Mon Dec 10, 2007 9:52 pm    Post subject: Default values for stringtrimleft and -right Reply with quote

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
View user's profile Send private message Send e-mail
Titan



Joined: 11 Aug 2004
Posts: 5390
Location: /b/

PostPosted: Mon Dec 10, 2007 9:53 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
engunneer



Joined: 30 Aug 2005
Posts: 6847
Location: Pacific Northwest, US

PostPosted: Tue Dec 11, 2007 12:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group