# Code problem (as)... i guess

**URL:** <https://forum.kirupa.com/t/code-problem-as-i-guess/184787>\
**Category:** Uncategorized\
**Created:** [April 7, 2006, 6:50pm UTC](https://forum.kirupa.com/t/code-problem-as-i-guess/184787 "2006-04-07T18:50:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [April 7, 2006, 6:50pm UTC](https://forum.kirupa.com/t/code-problem-as-i-guess/184787/1 "2006-04-07T18:50:04Z")

</div>

I am using the following code. Where \*\*list \*\*is an instance of a **ListBox.**

```auto

function displayDetails(c)
{
   trace("I am in displaydetails");
}
list.setChangeHandler("displayDetails");

```

The call to displayDetails function is NEVER done.  
Why?  
Any ideas, hints?  
PLEASE help.:hangover:  
Leo.

---

<div class="post-metadata">

**Author:** ![icio](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/icio/32/484_2.png) [@icio](https://forum.kirupa.com/u/icio)\
**Post date:** [April 7, 2006, 7:19pm UTC](https://forum.kirupa.com/t/code-problem-as-i-guess/184787/2 "2006-04-07T19:19:59Z")

</div>

Are you sure that `setChangeHandler` is a function of a list component?  
What effect are you trying to create exactly?

---

<div class="post-metadata">

**Author:** ![Leo75](https://avatars.discourse-cdn.com/v4/letter/l/779978/32.png) [@Leo75](https://forum.kirupa.com/u/Leo75)\
**Post date:** [April 7, 2006, 8:12pm UTC](https://forum.kirupa.com/t/code-problem-as-i-guess/184787/3 "2006-04-07T20:12:06Z")

</div>

> [@icio](#):
>
> Are you sure that `setChangeHandler` is a function of a list component?  
> What effect are you trying to create exactly?

Hi there…  
Thanks for the reply.  
The effect is that, for every change on the List Box, a certain function wil be called.  
I tried to upload the file, but is too big, can i send it to u?  
Thanks.  
Cheers.  
Leo.  
:ne:
