instead of

if (value.indexOf("Character") > -1) {

try

var temp:int = value.indexOf("Character");
trace(value);
trace("Character");
trace(temp);
if (temp > -1) {

my guess is that the trace will show that either "Character" or value isn't
what you thought it was and that the function is returning -1.
(I'm assuming you're replacing "Character" with a variable or literal
character in the code and not keeping it as "Character", because otherwise
that's you're problem right there).

Dan Freiman
nondocs <http://nondocs.blogspot.com>

On 5/8/07, haravallabhan <[EMAIL PROTECTED]> wrote:

  Hi,

It seems I alone get such wierd problems. I tried to pass an ListEvent
from the DataGrid on itemClick. I got the value from the event. I mean
the de\isplay value. I tried to check for a character in the value
using the value.indexOf("Character") > -1. it doesnt work. The method
is not returning anything.

When I check on the helper in the flex builder 2.0 IDE I could see only
the length method displayed and no other methods which is suppose be
for a string.

Can some body help me n this regard

Thanks in advance
Cheers
Hara

Reply via email to