Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Director FAQ [12] Lists [12.2] Why do I get a “handler not defined” error when using list operations?

0
Posted

Director FAQ [12] Lists [12.2] Why do I get a “handler not defined” error when using list operations?

0

List operations bring up this error when passed something that isn’t a list. A function like GetAProp() is not defined for integers, for example – there’s no possible right answer to the question “what’s the fifth item in 1?” A common cause of this error is not declaring lists as global. Lists only persist as long as the variables referring to them persist. If a list is defined in a local variable, and the handler it was defined in finishes, the list gets cleared away. If you then try to use it again without redefining it, you get this error.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123