bug?: $strlen and $arg

A forum for feature requests/discussions and user submitted patches that improve MQ2

Moderator: MacroQuest Developers

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

bug?: $strlen and $arg

Post by LordGiddion » Tue Oct 21, 2003 3:12 pm

both these functions seem to break if the string contain ( or , - see http://macroquest2.com/phpBB2/viewtopic ... 4033#24033 for an example.

LordGiddion
a snow griffon
a snow griffon
Posts: 352
Joined: Sat Sep 13, 2003 6:12 pm
Contact:

More details

Post by LordGiddion » Tue Oct 21, 2003 3:49 pm

/echo $strlen("this is a test(not much of a test) Just a test")
Returns 33 Just a test")
/echo $arg(5,"this is a test(not much of a test) Just a test")
Returns much Just a test")

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Fri Oct 24, 2003 12:27 am

I think I've gotten this bug fixed in my local copy for the following:
$arg()
$left()
$mid()
$right()
$instr()
$strlen()
$ucase()
$lcase()
- Plazmic

AarynD
a lesser mummy
a lesser mummy
Posts: 45
Joined: Thu Jan 02, 2003 11:25 am

Post by AarynD » Fri Oct 24, 2003 9:49 am

Cool, this might be the answer to my string parsing problems post under Macro Help.