AutoHotkey Community

It is currently May 27th, 2012, 4:53 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: StringMid improvement
PostPosted: October 7th, 2005, 2:27 pm 
Offline

Joined: February 7th, 2005, 11:11 am
Posts: 192
Location: Munich, Germany
Hi Chris,

could you, would you add this functionality to the "StringMid" command:
If the parameter "count" is omitted the string from "StartChar" to the end of the string is retrieved.
So the following would be possible:
Code:
var = A little Test
StringMid, var, var, 3

would result in "little Test".
Or did I overlook something? :roll:

Thanx!

Peter


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 7th, 2005, 2:32 pm 
Offline

Joined: February 7th, 2005, 11:11 am
Posts: 192
Location: Munich, Germany
Argh! Found a solution:
Code:
var = A little Test
StringMid, var, var, 3, 9999

retrieves the remaining part also. :oops:

But omitting "count" would be more clear and a more clean way of programming, I think.

Peter


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: October 8th, 2005, 2:26 am 
Offline

Joined: March 2nd, 2004, 3:36 pm
Posts: 10720
That sounds like a good improvement.

I'll add it to the list. Thanks.

Edit: This improvement has finally been made. Thanks again for the idea.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: LazyMan and 3 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group