#1
|
|||
|
|||
How do I remove a slash / from a string with ahk?
Sample code:
Players=6/6 msgbox %Players% Stringsplit,PlayersArray,%Players%,/ msgbox %PlayersArray1% StringLeft,Player,%Players%,8 MsgBox %Player% Both the StringSplit and StringLenft fails when a string contains a slash. Does anyone have a suggestion for how to get rid of the slash? I want to know how many players there are at the table. Regards Johan |
#2
|
|||
|
|||
Re: How do I remove a slash / from a string with ahk?
Hello Johan,
Welcome to the world of AHK [img]/images/graemlins/smile.gif[/img] Variables are not suppose to be surrounded by percent-signs in this instance. This code works: <font class="small">Code:</font><hr /><pre>Players=6/6 msgbox %Players% Stringsplit,PlayersArray,Players,/ msgbox %PlayersArray1% StringLeft,Player,Players,8 MsgBox %Player% </pre><hr /> /butcha |
#3
|
|||
|
|||
Re: How do I remove a slash / from a string with ahk?
Thanks!
|
|
|