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 |
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 |
Re: How do I remove a slash / from a string with ahk?
Thanks!
|
All times are GMT -4. The time now is 08:00 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.