View Single Post
# 2 03-05-2003 , 08:10 PM
Alan's Avatar
Join Date: Oct 2002
Location: London, UK
Posts: 2,800
I think it's because the $c is outside of the scope of resolution of the procedure.

Anything outside of the {} will probably not be picked up by anything inside it. try them as a global var and see what happens.

nope you need to either put the $c declaration inside the function or pass it in as a parameter:

string $c = "alan";

proc refreshChar(string $c)
string $car = "scrollListBox";
textScrollList -e -removeAll $c;
textScrollList -e -append "None" $c;

do it as a param it's probably better

This should work now


Technical Director - Framestore

Currently working on: Your Highness