Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 09-18-2007, 05:21 PM
Johan L Johan L is offline
Senior Member
 
Join Date: Nov 2005
Location: NL100$ FR 15/5/2.5
Posts: 489
Default 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
Reply With Quote
  #2  
Old 09-18-2007, 05:40 PM
butcha butcha is offline
Member
 
Join Date: Jun 2007
Posts: 67
Default 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
Reply With Quote
  #3  
Old 09-18-2007, 06:05 PM
Johan L Johan L is offline
Senior Member
 
Join Date: Nov 2005
Location: NL100$ FR 15/5/2.5
Posts: 489
Default Re: How do I remove a slash / from a string with ahk?

Thanks!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.