Can you post the entire script? I tried the same and it worked for me.
Here is what I ran. Try this and see if it works for you:
win.debug(replacechars("aa , aa", " , ", "," )) //output should be aa,aa
This worked also:
local test
test = "aa , aa"
win.debug(replacechars(test, " , ", "," ))
What version of PowerPro are you using?
Paul
-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf
Of bobpencnwc
Sent: Tuesday, October 18, 2005 7:09 AM
To: [email protected]
Subject: [power-pro] how to replace comma in strings
Hi,
I want to replace {space}{comma}{space} in a string with {comma}.
When I write replacechars(string, " , ","")
I get a bad expression warning.
I can see that this is because powerpro thinks my comma is a separator
of arguments.
I have tried putting the comma in double quotes but that doesn't help.
I expect that I have just not done the obvious.
Can anyone help me out?
Alistair
Attention: PowerPro's Web site has moved: http://www.ppro.org
<http://www.ppro.org>
_____
YAHOO! GROUPS LINKS
* Visit your group "power-pro
<http://groups.yahoo.com/group/power-pro> " on the web.
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
* Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .
_____
[Non-text portions of this message have been removed]
------------------------ Yahoo! Groups Sponsor --------------------~-->
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/JV_rlB/TM
--------------------------------------------------------------------~->
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/