| View previous topic :: View next topic |
| Author |
Message |
[二oO也
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Fri Mar 11, 2005 4:56 pm Post subject: Fill string |
|
|
In BASIC there is a function like:
That, in this case, would return a string that contained 20 b's.
My question is: Is there something similar to this in AHK?
I know that I could use something like:
| Code: |
string =
loop, 20
string = %string%b
|
_________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
Titan
Joined: 11 Aug 2004 Posts: 5049 Location: imaginationland
|
Posted: Fri Mar 11, 2005 5:06 pm Post subject: |
|
|
This works: | Code: | Loop, 20
{
String = %String%b
} |
_________________
RegExReplace("irc.freenode.net/ahk", "^(?=(.(?=[\0-r\[]*((?<=\.).))))(?:[c-\x73]{2,8}(\S))+((2)|\b[^\2-]){2}\D++$", "$u3$1$3$4$2") |
|
| Back to top |
|
 |
[二oO也
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Fri Mar 11, 2005 5:10 pm Post subject: RE: Fill string |
|
|
So, I'll take that as a no....
Thanks anyway
Maybe I should add it to "Wish List" forum. _________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
[二oO也
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Fri Mar 11, 2005 5:27 pm Post subject: Re: Fill string |
|
|
BTW, Titan: I don't think you need brackets if it's only one row that you "loop".  _________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Fri Mar 11, 2005 5:43 pm Post subject: |
|
|
If you find it more readable, you can also use an expression:
| Code: | Loop,20
String:=(String "b") |
|
|
| Back to top |
|
 |
|